Skip to content

Commit

Permalink
Add -DHPX_WITH_CUDA in compile options of Cuda examples
Browse files Browse the repository at this point in the history
  • Loading branch information
atrantan committed Feb 14, 2017
1 parent 3b6adff commit 5fa2094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -957,6 +957,7 @@ endif()
# CUDA features
################################################################################
if(HPX_WITH_CUDA AND NOT HPX_WITH_CUDA_CLANG)
hpx_add_target_compile_option(-DHPX_WITH_CUDA)
hpx_libraries(cudadevrt)
if(NOT MSVC)
hpx_library_dir(${CUDA_TOOLKIT_ROOT_DIR}/lib64)
Expand Down Expand Up @@ -986,6 +987,7 @@ if(HPX_WITH_CUDA AND NOT HPX_WITH_CUDA_CLANG)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-rdc=true)
endif()
if(HPX_WITH_CUDA AND HPX_WITH_CUDA_CLANG)
hpx_add_target_compile_option(-DHPX_WITH_CUDA)
hpx_add_target_compile_option(-DBOOST_THREAD_USES_MOVE)
hpx_add_target_compile_option(--cuda-path=${CUDA_TOOLKIT_ROOT_DIR})
hpx_libraries(cudart)
Expand Down

0 comments on commit 5fa2094

Please sign in to comment.