Skip to content

Commit

Permalink
free memory
Browse files Browse the repository at this point in the history
  • Loading branch information
aghaeifar committed Mar 21, 2024
1 parent 261fd4e commit 421331a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/spinwalk.cu
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ bool simulate(simulation_parameters param, std::map<std::string, std::vector<std
checkCudaErrors(cudaFree(d_XYZ0_scaled[d]));
checkCudaErrors(cudaFree(d_M1[d]));
checkCudaErrors(cudaFree(d_XYZ1[d]));
checkCudaErrors(cudaFree(d_T[d]));
checkCudaErrors(cudaStreamDestroy(streams[d]));
}
checkCudaErrors(cudaEventDestroy(start));
Expand Down

0 comments on commit 421331a

Please sign in to comment.