mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-24 08:41:23 +01:00
23 lines
579 B
CMake
23 lines
579 B
CMake
# Include directories and libraries
|
|
include_directories(../../../Common)
|
|
|
|
# Source file
|
|
set(SRC_FILES
|
|
UnifiedMemoryStreams.cu
|
|
)
|
|
|
|
find_package(OpenMP REQUIRED)
|
|
|
|
if(${OpenMP_FOUND})
|
|
# Add target for UnifiedMemoryStreams
|
|
add_executable(UnifiedMemoryStreams ${SRC_FILES})
|
|
set_target_properties(UnifiedMemoryStreams PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
|
|
|
target_link_libraries(UnifiedMemoryStreams PUBLIC
|
|
CUDA::cublas
|
|
OpenMP::OpenMP_CXX
|
|
)
|
|
else()
|
|
message(STATUS "OpenMP not found - will not build sample 'UnifiedMemoryStreams'")
|
|
endif()
|