Skip to content

Commit b6365b8

Browse files
committed
[test-suite, CUDA] Add support for sm_90a
Also fix libc++ build w/ cuda-12.3, which by now needs -D_ALLOW_UNSUPPORTED_LIBCPP in order to allow building w/ libc++.
1 parent 5482cc3 commit b6365b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

External/CUDA/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ set(SUPPORTED_GPU_CUDA_12_0
4747
sm_60 sm_61 sm_62
4848
sm_70 sm_72 sm_75
4949
sm_80 sm_86 sm_87 sm_89
50-
sm_90
50+
sm_90 sm_90a
5151
)
5252
set(SUPPORTED_GPU_CUDA_12_1 ${SUPPORTED_GPU_CUDA_12_0})
5353
set(SUPPORTED_GPU_CUDA_12_2 ${SUPPORTED_GPU_CUDA_12_1})
@@ -349,7 +349,8 @@ macro(create_cuda_tests)
349349
# Tell clang to use libc++
350350
# We also need to add compiler's include path for cxxabi.h
351351
get_filename_component(_compiler_path ${CMAKE_CXX_COMPILER} DIRECTORY)
352-
set(_Stdlib_CPPFLAGS -stdlib=libc++ -I${_compiler_path}/../include/c++/v1 -DSTDLIB_VERSION=2017)
352+
set(_Stdlib_CPPFLAGS -stdlib=libc++ -I${_compiler_path}/../include/c++/v1
353+
-DSTDLIB_VERSION=2017 -D_ALLOW_UNSUPPORTED_LIBCPP)
353354
set(_Stdlib_LDFLAGS -stdlib=libc++)
354355
set(_Stdlib_Libs libcxx)
355356
create_cuda_test_variant(${_Std} "${_Cuda_Suffix}-${_Std_Suffix}-libc++")

0 commit comments

Comments
 (0)