mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 17:29:18 +08:00
Update conjungateGradientPrecond
Remove redundant data copying
This commit is contained in:
parent
5f97d7d0df
commit
e8eb71f149
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user