Skip to content

Commit 1930824

Browse files
committed
[Thrust]: Disable run length decoding single pass example for C++17 builds, requires C++20 ranges.
1 parent dc68e5a commit 1930824

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

thrust/examples/run_length_decoding_single_pass.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# This example uses C++20 ranges. CUDA 13 nvcc has incompatibilities with GCC 14's libstdc++ ranges implementation.
1+
# This example uses C++20 ranges, so it requires C++20.
2+
if (NOT "20" STREQUAL "${config_dialect}")
3+
set_target_properties(${example_target} PROPERTIES EXCLUDE_FROM_ALL TRUE)
4+
set_tests_properties(${example_target} PROPERTIES DISABLED TRUE)
5+
return()
6+
endif()
7+
8+
# CUDA 13 nvcc has incompatibilities with GCC 14's libstdc++ ranges implementation.
29
# Disable this example for CUDA 13 + GCC 14 combination.
310
if ("CUDA" STREQUAL "${config_device}" AND "${CMAKE_CUDA_COMPILER_VERSION}" VERSION_LESS "14.0")
411
if ("GNU" STREQUAL "${CMAKE_CXX_COMPILER_ID}" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14)

0 commit comments

Comments
 (0)