We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae88d9c commit 68d34afCopy full SHA for 68d34af
CMakeLists.txt
@@ -161,6 +161,13 @@ if(USE_NVTX)
161
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --define-macro USE_NVTX")
162
endif(USE_NVTX)
163
164
+option(PER_THREAD_DEFAULT_STREAM "Build with per-thread default stream" OFF)
165
+if(PER_THREAD_DEFAULT_STREAM)
166
+ message(STATUS "Using per-thread default stream")
167
+ add_compile_definitions(CUDA_API_PER_THREAD_DEFAULT_STREAM)
168
+ set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --default-stream per-thread")
169
+endif(PER_THREAD_DEFAULT_STREAM)
170
+
171
###################################################################################################
172
# - link libraries --------------------------------------------------------------------------------
173
0 commit comments