Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Src/Base/AMReX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ amrex::Initialize (int& argc, char**& argv, bool build_parm_parse,
hypre_HandleDefaultExecPolicy(hypre_handle()) = HYPRE_EXEC_DEVICE;
hypre_HandleSpgemmUseCusparse(hypre_handle()) = 0;
#endif
HYPRE_DeviceInitialize();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we move this line right after HYPRE_init, in case it needs to be called before functions like HYPRE_SetGPUMemoryPoolSize?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot (Opus) claimed it should be at this location. I'm going to convert this to a draft anyway, because it seems like there is more to this I think I need to understand.

#endif

if (system::verbose > 0) {
Expand Down
Loading