Skip to content
Snippets Groups Projects
Commit 7c6be232 authored by 数学の武士's avatar 数学の武士
Browse files

Update CMakeLists.txt

parent a6195f74
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,10 @@ set(CMAKE_CXX_STANDARD 11) ...@@ -9,8 +9,10 @@ set(CMAKE_CXX_STANDARD 11)
message(STATUS "memory processing: GPU build in mode is ${INCLUDE_CUDA}") message(STATUS "memory processing: GPU build in mode is ${INCLUDE_CUDA}")
if(INCLUDE_CUDA) if(INCLUDE_CUDA)
enable_language(CUDA) if(NOT DEFINED CMAKE_CUDA_COMPILER)
include_directories(${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}) enable_language(CUDA)
include_directories(${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
endif()
# -DCMAKE_CUDA_ARCHITECTURES=native -- Compile for the architecture(s) of the host's GPU(s) # -DCMAKE_CUDA_ARCHITECTURES=native -- Compile for the architecture(s) of the host's GPU(s)
endif(INCLUDE_CUDA) endif(INCLUDE_CUDA)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment