Skip to content

Commit

Permalink
GPU: Always deallocate gpu_rand_state in Finalize()
Browse files Browse the repository at this point in the history
This fixes #3383.
  • Loading branch information
mirenradia committed Jun 26, 2023
1 parent 93e3d1d commit b9df613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ amrex::Finalize (amrex::AMReX* pamrex)
BL_TINY_PROFILE_FINALIZE();
BL_PROFILE_FINALIZE();

#ifdef AMREX_USE_CUDA
#if defined(AMREX_USE_GPU)
amrex::DeallocateRandomSeedDevArray();
#endif

Expand Down

0 comments on commit b9df613

Please sign in to comment.