Update conjungateGradientPrecond

Remove redundant data copying
This commit is contained in:
CXianRen 2024-05-23 12:51:36 +02:00 committed by GitHub
parent 5f97d7d0df
commit e8eb71f149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,8 +252,6 @@ int main(int argc, char **argv){
d_row, I, (N + 1) * sizeof(int), cudaMemcpyHostToDevice));
checkCudaErrors(cudaMemcpy(
d_val, val, nz * sizeof(float), cudaMemcpyHostToDevice));
checkCudaErrors(cudaMemcpy(
d_val, val, nz * sizeof(float), cudaMemcpyHostToDevice));
checkCudaErrors(cudaMemcpy(
d_x, x, N*sizeof(float), cudaMemcpyHostToDevice));
checkCudaErrors(cudaMemcpy(