File: stream_per_thread.cmake

package info (click to toggle)
cccl 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 89,900 kB
  • sloc: cpp: 697,664; ansic: 26,964; python: 11,928; sh: 3,284; asm: 2,154; perl: 460; makefile: 112; xml: 13
file content (13 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# This test should always use per-thread streams on NVCC.
set_target_properties(${test_target} PROPERTIES
  COMPILE_OPTIONS
    $<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:--default-stream=per-thread>
)

thrust_fix_clang_nvcc_build_for(${test_target})

# NVC++ does not have an equivalent option, and will always
# use the global stream by default.
if (CMAKE_CUDA_COMPILER_ID STREQUAL "NVHPC")
  set_tests_properties(${test_target} PROPERTIES WILL_FAIL ON)
endif()