Skip to content

Commit 1faff0f

Browse files
committed
Call HYPRE_DeviceInitialize after HYPRE_Init if using GPUs.
1 parent 25407fc commit 1faff0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Src/Base/AMReX.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ amrex::Initialize (int& argc, char**& argv, bool build_parm_parse,
754754
hypre_HandleDefaultExecPolicy(hypre_handle()) = HYPRE_EXEC_DEVICE;
755755
hypre_HandleSpgemmUseCusparse(hypre_handle()) = 0;
756756
#endif
757+
HYPRE_DeviceInitialize();
757758
#endif
758759

759760
if (system::verbose > 0) {

0 commit comments

Comments
 (0)