Files
CMake/Tests/CudaOnly/CompileFlags/main.cu
T
Robert Maynard 83a0c72a2d ci: Tell CudaOnly.CompileFlags test what specific architecture to use
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).
2025-04-23 09:28:13 -04:00

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()
{
}