Skip to content

Commit

Permalink
[SYCL-MLIR] Setup run environment
Browse files Browse the repository at this point in the history
Signed-off-by: Tsang, Whitney <[email protected]>
  • Loading branch information
whitneywhtsang committed Apr 13, 2023
1 parent b602044 commit 215d6d6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
52 changes: 26 additions & 26 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions runall.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 215d6d6

Please sign in to comment.