Skip to content

Fix #267: -gpu flag ignored when running multiple input scripts#373

Merged
JonathanMaes merged 3 commits into3.11.1from
bugfix/GPUflag
Jun 24, 2025
Merged

Fix #267: -gpu flag ignored when running multiple input scripts#373
JonathanMaes merged 3 commits into3.11.1from
bugfix/GPUflag

Conversation

@JonathanMaes
Copy link
Copy Markdown
Contributor

As reported in #267, running a command like mumax3 -gpu=0 script1.mx3 script2.mx3 on a system with multiple GPUs would run both scripts in parallel, each on a different GPU, despite the -gpu=0 flag.

This PR fixes this unintuitive behaviour of the -gpu flag. The aforementioned command will now run both scripts sequentially on GPU 0.

@JonathanMaes JonathanMaes requested a review from JLeliaert June 19, 2025 14:55
@JonathanMaes JonathanMaes merged commit 3af1a55 into 3.11.1 Jun 24, 2025
@JonathanMaes JonathanMaes deleted the bugfix/GPUflag branch June 24, 2025 14:21
@JonathanMaes JonathanMaes mentioned this pull request Jun 24, 2025
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.

1 participant