Check for OpenMP support and build OMP3 version

This commit is contained in:
Tom Deakin 2016-05-11 17:49:48 +01:00
parent bf9c6fb6cd
commit 5638cbb283

View File

@ -75,8 +75,13 @@ endif ()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# OpenMP 3.0 # OpenMP 3.0
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
find_package(OpenMP QUIET)
# TODO if (${OpenMP_FOUND})
add_executable(gpu-stream-omp3 main.cpp OMP3Stream.cpp)
target_compile_definitions(gpu-stream-omp3 PUBLIC OMP3)
else ()
message("Skipping OpenMP 3...")
endif ()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# OpenMP 4.5 # OpenMP 4.5