Check for OpenMP support and build OMP3 version
This commit is contained in:
parent
bf9c6fb6cd
commit
5638cbb283
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user