Skip to content

Commit

Permalink
Fix dBVH memcpy size (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju authored and sethrj committed Jan 14, 2025
1 parent 38b286c commit 937632f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/geocel/vg/detail/VecgeomSetup.cu
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ CudaPointers<vecgeom::cuda::BVH const> bvh_pointers_device()
}

// Copy from symbol using runtime API
CELER_CUDA_CALL(cudaMemcpyFromSymbol(
&result.symbol, vecgeom::cuda::dBVH, 1, 0, cudaMemcpyDeviceToHost));
CELER_CUDA_CALL(cudaMemcpyFromSymbol(&result.symbol,
vecgeom::cuda::dBVH,
sizeof(vecgeom::cuda::dBVH),
0,
cudaMemcpyDeviceToHost));
CELER_CUDA_CALL(cudaDeviceSynchronize());

return result;
Expand Down

0 comments on commit 937632f

Please sign in to comment.