From b9df613e6a2d6c9b070719bd98221817902cfff2 Mon Sep 17 00:00:00 2001 From: Miren Radia Date: Fri, 23 Jun 2023 17:07:00 +0100 Subject: [PATCH] GPU: Always deallocate gpu_rand_state in Finalize() This fixes #3383. --- Src/Base/AMReX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX.cpp b/Src/Base/AMReX.cpp index e82fab20596..005509de932 100644 --- a/Src/Base/AMReX.cpp +++ b/Src/Base/AMReX.cpp @@ -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