Commit f127bd3a authored by rusty1s's avatar rusty1s
Browse files

add nvcc flags [ci skip]

parent 1ef1a335
...@@ -8,6 +8,8 @@ option(WITH_CUDA "Enable CUDA support" OFF) ...@@ -8,6 +8,8 @@ option(WITH_CUDA "Enable CUDA support" OFF)
if(WITH_CUDA) if(WITH_CUDA)
enable_language(CUDA) enable_language(CUDA)
add_definitions(-D__CUDA_NO_HALF_OPERATORS__) add_definitions(-D__CUDA_NO_HALF_OPERATORS__)
add_definitions(-DWITH_CUDA)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -arch=sm_35 --expt-relaxed-constexpr")
endif() endif()
find_package(Python3 COMPONENTS Development) find_package(Python3 COMPONENTS Development)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment