Skip to content
Snippets Groups Projects
Commit 6de38e02 authored by cmaffeo2's avatar cmaffeo2
Browse files

fixed bug in initializing forceInternal_d

parent 1219837c
No related branches found
No related tags found
No related merge requests found
...@@ -945,7 +945,7 @@ void GrandBrownTown::copyToCUDA() { ...@@ -945,7 +945,7 @@ void GrandBrownTown::copyToCUDA() {
cudaMemcpyHostToDevice)); cudaMemcpyHostToDevice));
gpuErrchk(cudaMalloc(&forceInternal_d, sizeof(Vector3) * num * numReplicas)); gpuErrchk(cudaMalloc(&forceInternal_d, sizeof(Vector3) * num * numReplicas));
gpuErrchk(cudaMemcpyAsync(forceInternal_d, forceInternal, sizeof(Vector3), gpuErrchk(cudaMemcpyAsync(forceInternal_d, forceInternal, sizeof(Vector3) * tot_num,
cudaMemcpyHostToDevice)); cudaMemcpyHostToDevice));
gpuErrchk(cudaMalloc(&randoGen_d, sizeof(Random))); gpuErrchk(cudaMalloc(&randoGen_d, sizeof(Random)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment