Skip to content
Snippets Groups Projects
Commit dea38432 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Only provide gpu variants of old HPVM bench when OpenCL exists

parent 11c39759
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,10 @@ add_hpvm_benchmark(
src/main.c "${util_bitcodes}"
)
set(all_flags_gpu ${compiler_flags} "-DDEVICE=GPU_TARGET" "--opencl" "-lpthread")
add_hpvm_benchmark(
"hpvm_cava_gpu" "hpvm-cava-gpu" "${all_flags_gpu}" "c"
src/main.c "${util_bitcodes}"
)
if(HPVM_USE_OPENCL)
set(all_flags_gpu ${compiler_flags} "-DDEVICE=GPU_TARGET" "--opencl" "-lpthread")
add_hpvm_benchmark(
"hpvm_cava_gpu" "hpvm-cava-gpu" "${all_flags_gpu}" "c"
src/main.c "${util_bitcodes}"
)
endif()
......@@ -7,7 +7,9 @@ if(${OpenCV_FOUND})
-lpthread
)
add_hpvm_benchmark("pipeline_cpu" "pipeline-cpu" "${all_flags}" "c++" src/main.cc "")
add_hpvm_benchmark("pipeline_gpu" "pipeline-gpu" "${all_flags};--opencl" "c++" src/main.cc "")
if(HPVM_USE_OPENCL)
add_hpvm_benchmark("pipeline_gpu" "pipeline-gpu" "${all_flags};--opencl" "c++" src/main.cc "")
endif()
else()
message(WARNING "opencv-2 not found; not compiling HPVM benchmark 'pipeline'.")
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment