Esempio n. 1
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
Esempio n. 2
0
def main(option):
  path = utils.get_sample_build_path("ze_metric_streamer")
  if option == "dpc":
    log = dpc_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
Esempio n. 3
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
Esempio n. 4
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