Remove unnecessary atom force backcopy in computeForce

This commit is contained in:
Maximilian Gaul 2022-01-24 18:09:27 +01:00
parent c4080e866e
commit b2a6574426

View File

@ -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");