diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2024-10-17 18:45:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-10-18 00:18:24 (GMT) |
commit | ee9e2216ecb0173ff20411a2347df2d207b6d9ca (patch) | |
tree | 5780f9ac9e927eae0575c1e36b939d6fcc915d22 /Tests | |
parent | cb981c3b0074d8f2568ed935726eeada7ed2d07f (diff) | |
download | CMake-ee9e2216ecb0173ff20411a2347df2d207b6d9ca.zip CMake-ee9e2216ecb0173ff20411a2347df2d207b6d9ca.tar.gz CMake-ee9e2216ecb0173ff20411a2347df2d207b6d9ca.tar.bz2 |
Tests: Simplify CUDA kernels avoid crash with nvidia driver 550
Avoid having two identical kernels in PTX. We don't need a second
kernel anyway.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CudaOnly/SeparateCompilationPTX/kernels.cu | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Tests/CudaOnly/SeparateCompilationPTX/kernels.cu b/Tests/CudaOnly/SeparateCompilationPTX/kernels.cu index f4a52d4..fbe0d26 100644 --- a/Tests/CudaOnly/SeparateCompilationPTX/kernels.cu +++ b/Tests/CudaOnly/SeparateCompilationPTX/kernels.cu @@ -5,10 +5,3 @@ __global__ void kernelA(float* r, float* x, float* y, float* z, int size) r[i] = x[i] * y[i] + z[i]; } } - -__global__ void kernelB(float* r, float* x, float* y, float* z, int size) -{ - for (int i = threadIdx.x; i < size; i += blockDim.x) { - r[i] = x[i] * y[i] + z[i]; - } -} |