@@ -33,40 +33,40 @@ __global__ void zshift_matrix(cuDoubleComplex* A, int n, double shift) {
3333 if (idx < n) A[(idx)*n + idx].x += shift;
3434}
3535
36- __global__ void sshift_mgpu_matrix (float * A, int * off_m, int * off_n,
37- int offsize, int ldH, float shift) {
36+ __global__ void sshift_mgpu_matrix (float * A, std:: size_t * off_m, std:: size_t * off_n,
37+ std:: size_t offsize, std:: size_t ldH, float shift) {
3838 int i = blockIdx.x * blockDim.x + threadIdx.x ;
39- int ind;
39+ std:: size_t ind;
4040 if (i < offsize){
4141 ind = off_n[i] * ldH + off_m[i];
4242 A[ind] += shift;
4343 }
4444}
4545
46- __global__ void dshift_mgpu_matrix (double * A, int * off_m, int * off_n,
47- int offsize, int ldH, double shift) {
46+ __global__ void dshift_mgpu_matrix (double * A, std:: size_t * off_m, std:: size_t * off_n,
47+ std:: size_t offsize, std:: size_t ldH, double shift) {
4848 int i = blockIdx.x * blockDim.x + threadIdx.x ;
49- int ind;
49+ std:: size_t ind;
5050 if (i < offsize){
5151 ind = off_n[i] * ldH + off_m[i];
5252 A[ind] += shift;
5353 }
5454}
5555
56- __global__ void cshift_mgpu_matrix (cuComplex* A, int * off_m, int * off_n,
57- int offsize, int ldH, float shift) {
56+ __global__ void cshift_mgpu_matrix (cuComplex* A, std:: size_t * off_m, std:: size_t * off_n,
57+ std:: size_t offsize, std:: size_t ldH, float shift) {
5858 int i = blockIdx.x * blockDim.x + threadIdx.x ;
59- int ind;
59+ std:: size_t ind;
6060 if (i < offsize){
6161 ind = off_n[i] * ldH + off_m[i];
6262 A[ind].x += shift;
6363 }
6464}
6565
66- __global__ void zshift_mgpu_matrix (cuDoubleComplex* A, int * off_m, int * off_n,
67- int offsize, int ldH, double shift) {
66+ __global__ void zshift_mgpu_matrix (cuDoubleComplex* A, std:: size_t * off_m, std:: size_t * off_n,
67+ std:: size_t offsize, std:: size_t ldH, double shift) {
6868 int i = blockIdx.x * blockDim.x + threadIdx.x ;
69- int ind;
69+ std:: size_t ind;
7070 if (i < offsize){
7171 ind = off_n[i] * ldH + off_m[i];
7272 A[ind].x += shift;
@@ -101,8 +101,8 @@ void chase_shift_matrix(std::complex<double>* A, int n, double shift,
101101 reinterpret_cast <cuDoubleComplex*>(A), n, shift);
102102}
103103
104- void chase_shift_mgpu_matrix (float * A, int * off_m, int * off_n,
105- int offsize, int ldH, float shift,
104+ void chase_shift_mgpu_matrix (float * A, std:: size_t * off_m, std:: size_t * off_n,
105+ std:: size_t offsize, std:: size_t ldH, float shift,
106106 cudaStream_t stream_) {
107107
108108 unsigned int grid = (offsize + 256 - 1 ) / 256 ;
@@ -114,8 +114,8 @@ void chase_shift_mgpu_matrix(float* A, int* off_m, int* off_n,
114114}
115115
116116
117- void chase_shift_mgpu_matrix (double * A, int * off_m, int * off_n,
118- int offsize, int ldH, double shift,
117+ void chase_shift_mgpu_matrix (double * A, std:: size_t * off_m, std:: size_t * off_n,
118+ std:: size_t offsize, std:: size_t ldH, double shift,
119119 cudaStream_t stream_) {
120120
121121 unsigned int grid = (offsize + 256 - 1 ) / 256 ;
@@ -126,8 +126,8 @@ void chase_shift_mgpu_matrix(double* A, int* off_m, int* off_n,
126126
127127}
128128
129- void chase_shift_mgpu_matrix (std::complex <float >* A, int * off_m, int * off_n,
130- int offsize, int ldH, float shift,
129+ void chase_shift_mgpu_matrix (std::complex <float >* A, std:: size_t * off_m, std:: size_t * off_n,
130+ std:: size_t offsize, std:: size_t ldH, float shift,
131131 cudaStream_t stream_) {
132132
133133 unsigned int grid = (offsize + 256 - 1 ) / 256 ;
@@ -140,8 +140,8 @@ void chase_shift_mgpu_matrix(std::complex<float>* A, int* off_m, int* off_n,
140140}
141141
142142
143- void chase_shift_mgpu_matrix (std::complex <double >* A, int * off_m, int * off_n,
144- int offsize, int ldH, double shift,
143+ void chase_shift_mgpu_matrix (std::complex <double >* A, std:: size_t * off_m, std:: size_t * off_n,
144+ std:: size_t offsize, std:: size_t ldH, double shift,
145145 cudaStream_t stream_) {
146146
147147 unsigned int grid = (offsize + 256 - 1 ) / 256 ;
0 commit comments