1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-25 09:34:23 +00:00

Update exercise2.cu

This commit is contained in:
Alessandro Capotondi 2022-04-27 08:10:25 +00:00
parent 8477302d95
commit 5761b0de1c

View file

@ -143,7 +143,7 @@ int main(int argc, const char **argv)
//TODO: ADD CUDA Data Move
start_timer();
cudaMemcpy(h_x, d_x, sizeof(float) * n, cudaMemcpyDeviceToHost);
cudaMemcpy(d_x, h_x, sizeof(float) * n, cudaMemcpyHostToDevice);
//TODO: Add kernel call here