mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-24 23:49:18 -06:00
The target properties `CUDA_SEPARABLE_COMPILATION` and `CUDA_PTX_COMPILATION` now aren't mutually exclusive and can now be used together on the same target.
15 lines
342 B
Plaintext
15 lines
342 B
Plaintext
|
|
__global__ void kernelA(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];
|
|
}
|
|
}
|
|
|
|
__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];
|
|
}
|
|
}
|