コード例 #1
0
ファイル: ze_tracer.py プロジェクト: ivorobts/pti-gpu
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
コード例 #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
コード例 #3
0
ファイル: ze_hot_functions.py プロジェクト: ivorobts/pti-gpu
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
コード例 #4
0
ファイル: gpu_perfmon_read.py プロジェクト: al42and/pti-gpu
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