From 31819b7778fd4fd7f99c3450b73e6b5f13630629 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Tue, 3 May 2016 15:07:51 +0100 Subject: [PATCH] Add bones of OpenACC in CMake config --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd9a10d..1a15bc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,15 @@ else (${OpenCL_FOUND}) message("Skipping OpenCL...") 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 if (true) add_executable(gpu-stream-sycl main.cpp SYCLStream.cpp)