From 215d6d69f1c9b86c6bc2208ae79ee12416e5d3e5 Mon Sep 17 00:00:00 2001 From: "Tsang, Whitney" Date: Wed, 15 Feb 2023 13:21:43 -0800 Subject: [PATCH] [SYCL-MLIR] Setup run environment Signed-off-by: Tsang, Whitney --- CMakeLists.txt | 52 +++++++++++++++++++++++++------------------------- runall.sh | 4 ++++ 2 files changed, 30 insertions(+), 26 deletions(-) create mode 100755 runall.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index b3ce31c..f933ca6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ if(SYCL_IMPL STREQUAL "ComputeCpp") elseif(SYCL_IMPL STREQUAL "hipSYCL") find_package(hipSYCL CONFIG REQUIRED) elseif(SYCL_IMPL STREQUAL "LLVM") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -fsycl-targets=spir64-unknown-unknown-syclmlir -w") elseif(SYCL_IMPL STREQUAL "LLVM-CUDA") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -fsycl-targets=nvptx64-nvidia-cuda-sycldevice") @@ -51,38 +51,38 @@ elseif(SYCL_IMPL STREQUAL "triSYCL") endif() set(benchmarks - micro/arith.cpp - micro/DRAM.cpp - micro/host_device_bandwidth.cpp - micro/pattern_L2.cpp - micro/sf.cpp - micro/local_mem.cpp - single-kernel/median.cpp - single-kernel/scalar_prod.cpp - single-kernel/sobel.cpp - single-kernel/sobel5.cpp - single-kernel/sobel7.cpp - single-kernel/vec_add.cpp - single-kernel/lin_reg_error.cpp - single-kernel/lin_reg_coeff.cpp - single-kernel/kmeans.cpp - single-kernel/mol_dyn.cpp - single-kernel/nbody.cpp - pattern/segmentedreduction.cpp - pattern/reduction.cpp - runtime/dag_task_throughput_sequential.cpp - runtime/dag_task_throughput_independent.cpp - runtime/blocked_transform.cpp + #micro/arith.cpp + #micro/DRAM.cpp + #micro/host_device_bandwidth.cpp + #micro/pattern_L2.cpp + #micro/sf.cpp + #micro/local_mem.cpp + #single-kernel/median.cpp + #single-kernel/scalar_prod.cpp + #single-kernel/sobel.cpp + #single-kernel/sobel5.cpp + #single-kernel/sobel7.cpp + #single-kernel/vec_add.cpp + #single-kernel/lin_reg_error.cpp + #single-kernel/lin_reg_coeff.cpp + #single-kernel/kmeans.cpp + #single-kernel/mol_dyn.cpp + #single-kernel/nbody.cpp + #pattern/segmentedreduction.cpp + #pattern/reduction.cpp + #runtime/dag_task_throughput_sequential.cpp + #runtime/dag_task_throughput_independent.cpp + #runtime/blocked_transform.cpp runtime/matmulchain.cpp polybench/2DConvolution.cpp polybench/2mm.cpp - polybench/3DConvolution.cpp + #polybench/3DConvolution.cpp polybench/3mm.cpp polybench/atax.cpp polybench/bicg.cpp - polybench/correlation.cpp + #polybench/correlation.cpp polybench/covariance.cpp - polybench/fdtd2d.cpp + #polybench/fdtd2d.cpp polybench/gemm.cpp polybench/gesummv.cpp polybench/gramschmidt.cpp diff --git a/runall.sh b/runall.sh new file mode 100755 index 0000000..749f69f --- /dev/null +++ b/runall.sh @@ -0,0 +1,4 @@ +for benchmark in 2DConvolution 2mm 3mm atax bicg blocked_transform covariance gemm gesummv gramschmidt matmulchain mvt syr2k syrk; do + echo "Running $benchmark" + ./$benchmark --device=gpu --output=output.csv #--no-verification +done