mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 20:00:51 -05:00
83a0c72a2d
CUDA 12.8 deprecates architectures below 75. Presumably a future
version will remove it. Prepare infrastructure to avoid relying on
hard-coded arch 50 in this test.
This extends commit 63a5460faf (ci: Tell CudaOnly.Architecture test what
specific architecture to use, 2025-04-21).
17 lines
302 B
Plaintext
17 lines
302 B
Plaintext
#ifndef EXPECT_CUDA_ARCH
|
|
# error "EXPECT_CUDA_ARCH not defined!"
|
|
#endif
|
|
#ifdef __CUDA_ARCH__
|
|
# if __CUDA_ARCH__ != (EXPECT_CUDA_ARCH * 10)
|
|
# error "__CUDA_ARCH__ does not match CUDA_ARCHITECTURES"
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef ALWAYS_DEFINE
|
|
# error "ALWAYS_DEFINE not defined!"
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
}
|