From c4ab4be45de3f79293e2693748f39c47363d3f08 Mon Sep 17 00:00:00 2001 From: sfilippone Date: Thu, 27 Mar 2025 11:23:40 +0100 Subject: [PATCH] Cleanup some cuda compile warnings. --- cuda/spgpu/kernels/caxpby.cu | 1 - cuda/spgpu/kernels/cupd_xyz.cu | 1 - cuda/spgpu/kernels/cxyzw.cu | 1 - cuda/spgpu/kernels/daxpby.cu | 1 - cuda/spgpu/kernels/dupd_xyz.cu | 1 - cuda/spgpu/kernels/dxyzw.cu | 1 - cuda/spgpu/kernels/saxpby.cu | 1 - cuda/spgpu/kernels/supd_xyz.cu | 1 - cuda/spgpu/kernels/sxyzw.cu | 1 - cuda/spgpu/kernels/zaxpby.cu | 1 - cuda/spgpu/kernels/zupd_xyz.cu | 1 - cuda/spgpu/kernels/zxyzw.cu | 1 - 12 files changed, 12 deletions(-) diff --git a/cuda/spgpu/kernels/caxpby.cu b/cuda/spgpu/kernels/caxpby.cu index bea30d94..a89f2b9c 100644 --- a/cuda/spgpu/kernels/caxpby.cu +++ b/cuda/spgpu/kernels/caxpby.cu @@ -63,7 +63,6 @@ void spgpuCaxpby(spgpuHandle_t handle, cuFloatComplex alpha, __device cuFloatComplex* x) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/cupd_xyz.cu b/cuda/spgpu/kernels/cupd_xyz.cu index 04c137ff..e8dc9300 100644 --- a/cuda/spgpu/kernels/cupd_xyz.cu +++ b/cuda/spgpu/kernels/cupd_xyz.cu @@ -65,7 +65,6 @@ void spgpuCupd_xyz(spgpuHandle_t handle, __device cuFloatComplex * y, __device cuFloatComplex *z) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/cxyzw.cu b/cuda/spgpu/kernels/cxyzw.cu index 3047d65c..783c7714 100644 --- a/cuda/spgpu/kernels/cxyzw.cu +++ b/cuda/spgpu/kernels/cxyzw.cu @@ -63,7 +63,6 @@ void spgpuCxyzw(spgpuHandle_t handle, __device cuFloatComplex * z, __device cuFloatComplex *w) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/daxpby.cu b/cuda/spgpu/kernels/daxpby.cu index 3a388988..41e493b1 100644 --- a/cuda/spgpu/kernels/daxpby.cu +++ b/cuda/spgpu/kernels/daxpby.cu @@ -60,7 +60,6 @@ void spgpuDaxpby(spgpuHandle_t handle, double alpha, __device double* x) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/dupd_xyz.cu b/cuda/spgpu/kernels/dupd_xyz.cu index d0060694..11fc6c9a 100644 --- a/cuda/spgpu/kernels/dupd_xyz.cu +++ b/cuda/spgpu/kernels/dupd_xyz.cu @@ -64,7 +64,6 @@ void spgpuDupd_xyz(spgpuHandle_t handle, __device double* y, __device double *z) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/dxyzw.cu b/cuda/spgpu/kernels/dxyzw.cu index ab93a379..f9964cc7 100644 --- a/cuda/spgpu/kernels/dxyzw.cu +++ b/cuda/spgpu/kernels/dxyzw.cu @@ -63,7 +63,6 @@ void spgpuDxyzw(spgpuHandle_t handle, __device double * z, __device double *w) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/saxpby.cu b/cuda/spgpu/kernels/saxpby.cu index ebb41350..ab103bbb 100644 --- a/cuda/spgpu/kernels/saxpby.cu +++ b/cuda/spgpu/kernels/saxpby.cu @@ -62,7 +62,6 @@ void spgpuSaxpby(spgpuHandle_t handle, float alpha, __device float* x) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/supd_xyz.cu b/cuda/spgpu/kernels/supd_xyz.cu index e8d7b028..0bfed1ae 100644 --- a/cuda/spgpu/kernels/supd_xyz.cu +++ b/cuda/spgpu/kernels/supd_xyz.cu @@ -64,7 +64,6 @@ void spgpuSupd_xyz(spgpuHandle_t handle, __device float* y, __device float *z) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/sxyzw.cu b/cuda/spgpu/kernels/sxyzw.cu index f69d087e..26422e55 100644 --- a/cuda/spgpu/kernels/sxyzw.cu +++ b/cuda/spgpu/kernels/sxyzw.cu @@ -63,7 +63,6 @@ void spgpuSxyzw(spgpuHandle_t handle, __device float * z, __device float *w) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/zaxpby.cu b/cuda/spgpu/kernels/zaxpby.cu index c576acbd..07122ff5 100644 --- a/cuda/spgpu/kernels/zaxpby.cu +++ b/cuda/spgpu/kernels/zaxpby.cu @@ -64,7 +64,6 @@ void spgpuZaxpby(spgpuHandle_t handle, cuDoubleComplex alpha, __device cuDoubleComplex* x) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/zupd_xyz.cu b/cuda/spgpu/kernels/zupd_xyz.cu index 360b87bd..3a7f4c00 100644 --- a/cuda/spgpu/kernels/zupd_xyz.cu +++ b/cuda/spgpu/kernels/zupd_xyz.cu @@ -65,7 +65,6 @@ void spgpuZupd_xyz(spgpuHandle_t handle, __device cuDoubleComplex * y, __device cuDoubleComplex *z) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors(); diff --git a/cuda/spgpu/kernels/zxyzw.cu b/cuda/spgpu/kernels/zxyzw.cu index b07b6aa9..c02991dd 100644 --- a/cuda/spgpu/kernels/zxyzw.cu +++ b/cuda/spgpu/kernels/zxyzw.cu @@ -63,7 +63,6 @@ void spgpuZxyzw(spgpuHandle_t handle, __device cuDoubleComplex * z, __device cuDoubleComplex *w) { - int msize = (n+BLOCK_SIZE-1)/BLOCK_SIZE; int num_mp, max_threads_mp, num_blocks_mp, num_blocks; dim3 block(BLOCK_SIZE); num_mp = getGPUMultiProcessors();