From b2a6574426b8933da5a7afbfb1f789de7c8d50af Mon Sep 17 00:00:00 2001 From: Maximilian Gaul Date: Mon, 24 Jan 2022 18:09:27 +0100 Subject: [PATCH] Remove unnecessary atom force backcopy in computeForce --- src/force.cu | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/force.cu b/src/force.cu index 1d06b68..6e9f41a 100644 --- a/src/force.cu +++ b/src/force.cu @@ -265,21 +265,6 @@ double computeForce( checkCUDAError( "PeekAtLastError ComputeForce", cudaPeekAtLastError() ); checkCUDAError( "DeviceSync ComputeForce", cudaDeviceSynchronize() ); - // copy results in c_atom.fx/fy/fz to atom->fx/fy/fz - - checkCUDAError( "memcpy force back", cudaMemcpy(atom->fx, c_atom.fx, sizeof(MD_FLOAT) * Nlocal * 3, cudaMemcpyDeviceToHost) ); - - /* - cudaFree(c_atom.x); - cudaFree(c_atom.fx); cudaFree(c_atom.fy); cudaFree(c_atom.fz); - cudaFree(c_atom.type); - cudaFree(c_atom.epsilon); - cudaFree(c_atom.sigma6); - cudaFree(c_atom.cutforcesq); - */ - - // cudaFree(c_neighs); cudaFree(c_neigh_numneigh); - cudaProfilerStop(); LIKWID_MARKER_STOP("force");