Exemplo n.º 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
Exemplo n.º 2
0
def main(option):
    path = utils.get_sample_build_path("omp_hot_regions")
    log = omp_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
Exemplo n.º 3
0
def main(option):
    path = utils.get_tool_build_path("ze_tracer")
    if option == "dpc":
        log = dpc_gemm.main("gpu")
    elif option == "omp":
        log = omp_gemm.main("gpu")
    else:
        log = ze_gemm.main(None)
    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
Exemplo n.º 4
0
def main(option):
  path = utils.get_sample_build_path("ze_hot_functions")
  if option == "dpc":
    log = dpc_gemm.main("gpu")
    if log:
      return log
  elif option == "omp":
    log = omp_gemm.main("gpu")
    if log:
      return log
  else:
    log = ze_gemm.main(None)
    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