Skip to content

Commit

Permalink
Make -std=c++11 nvcc flag consistent for in-build and installed versions
Browse files Browse the repository at this point in the history
  • Loading branch information
biddisco committed Jan 19, 2017
1 parent 5b207a0 commit 11e29e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -970,6 +970,7 @@ if(HPX_WITH_CUDA AND NOT HPX_WITH_CUDA_CLANG)
set(CUDA_NVCC_FLAGS_RELEASE ${CUDA_NVCC_FLAGS_RELEASE};-DNDEBUG;-O2;-Xcompiler=-MD,-Ox;-Xcompiler=-bigobj)
endif()
set(CUDA_SEPARABLE_COMPILATION ON)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};${CXX_FLAG})
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode=arch=compute_30,code=sm_30)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode=arch=compute_35,code=sm_35)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode=arch=compute_30,code=compute_30)
Expand Down
2 changes: 1 addition & 1 deletion cmake/templates/HPXConfig.cmake.in
Expand Up @@ -75,6 +75,6 @@ set(HPX_WITH_CUDA_CLANG @HPX_WITH_CUDA_CLANG@)
if(HPX_WITH_CUDA AND NOT HPX_WITH_CUDA_CLANG)
find_package(CUDA REQUIRED)
set(CUDA_SEPARABLE_COMPILATION ON)
set(CUDA_NVCC_FLAGS @CXX_FLAG@ @CUDA_NVCC_FLAGS@)
set(CUDA_NVCC_FLAGS @CUDA_NVCC_FLAGS@)
cuda_include_directories("@HPX_CMAKE_CONF_INCLUDE_DIRS@")
endif()

0 comments on commit 11e29e0

Please sign in to comment.