Add bones of OpenACC in CMake config

This commit is contained in:
Tom Deakin 2016-05-03 15:07:51 +01:00
parent 0b0de4e0c3
commit 31819b7778

View File

@ -28,6 +28,15 @@ else (${OpenCL_FOUND})
message("Skipping OpenCL...") message("Skipping OpenCL...")
endif (${OpenCL_FOUND}) endif (${OpenCL_FOUND})
# TODO: Find OpenACC implementations somehow
if (true)
add_executable(gpu-stream-acc main.cpp ACCStream.cpp)
target_compile_definitions(gpu-stream-acc PUBLIC ACC)
target_compile_options(gpu-stream-acc PUBLIC "-hstd=c++11")
else ()
message("Skipping OpenACC...")
endif ()
# TODO: Find SYCL implementations somehow # TODO: Find SYCL implementations somehow
if (true) if (true)
add_executable(gpu-stream-sycl main.cpp SYCLStream.cpp) add_executable(gpu-stream-sycl main.cpp SYCLStream.cpp)