Example #1
0
def main(option):
    path = utils.get_sample_build_path("cl_hot_kernels")
    if option == "dpc":
        log = dpc_gemm.main("cpu")
        if log:
            return log
    elif option == "omp":
        log = omp_gemm.main("gpu")
        if log:
            return log
    else:
        log = cl_gemm.main(option)
        if log:
            return log
    log = config(path)
    if log:
        return log
    log = build(path)
    if log:
        return log
    log = run(path, option)
    if log:
        return log
    log = run(path, option)
    if log:
        return log
Example #2
0
def main(option):
    path = utils.get_tool_build_path("cl_tracer")
    if option == "dpc":
        log = dpc_gemm.main("cpu")
    elif option == "omp":
        log = omp_gemm.main("gpu")
    elif option == "gpu":
        log = cl_gemm.main("gpu")
    else:
        log = cl_gemm.main("cpu")
    if log:
        return log
    log = config(path)
    if log:
        return log
    log = build(path)
    if log:
        return log
    log = run(path, option)
    if log:
        return log
Example #3
0
def main(option):
    path = utils.get_sample_build_path("cl_debug_info")
    log = cl_gemm.main("gpu")
    if log:
        return log
    log = config(path)
    if log:
        return log
    log = build(path)
    if log:
        return log
    log = run(path)
    if log:
        return log
Example #4
0
def main(option):
    path = utils.get_tool_build_path("onetrace")
    if option == "cl":
        log = cl_gemm.main("gpu")
    elif option == "ze":
        log = ze_gemm.main(None)
    elif option == "omp":
        log = omp_gemm.main("gpu")
    else:
        log = dpc_gemm.main("gpu")
    if log:
        return log
    log = config(path)
    if log:
        return log
    log = build(path)
    if log:
        return log
    log = run(path, option)
    if log:
        return log
Example #5
0
def main(option):
    path = utils.get_sample_build_path("gpu_perfmon_read")
    if option == "cl":
        log = cl_gemm.main("gpu")
        if log:
            return log
    elif option == "ze":
        log = ze_gemm.main(None)
        if log:
            return log
    else:
        log = dpc_gemm.main("gpu")
        if log:
            return log
    log = config(path)
    if log:
        return log
    log = build(path)
    if log:
        return log
    log = run(path, option)
    if log:
        return log