Skip to content

Conversation

@WeiqunZhang
Copy link
Member

In most cases, you should let AMReX select a device when multiple GPU devices are visible. However, if another library has already been initialized and assigned processes to specific devices, you may need AMReX to use a particular GPU. In that case, you can pass the desired device ID to amrex::Initialize.

@WeiqunZhang WeiqunZhang requested a review from atmyers October 30, 2025 18:47
In most cases, you should let AMReX select a device when multiple GPU
devices are visible. However, if another library has already been
initialized and assigned processes to specific devices, you may need AMReX
to use a particular GPU. In that case, you can pass the desired device ID to
`amrex::Initialize`.
@WeiqunZhang WeiqunZhang merged commit 159ed0b into AMReX-Codes:development Nov 3, 2025
73 checks passed
@WeiqunZhang WeiqunZhang deleted the init_device_id branch November 3, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants