Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executable: Expose number of cores/threads/gpus/etc as environment variables to scripts #1483

Open
1 task
pmrv opened this issue Jun 18, 2024 · 0 comments
Open
1 task
Assignees
Labels
enhancement New feature or request

Comments

@pmrv
Copy link
Contributor

pmrv commented Jun 18, 2024

Currently we pass the number of cores and number of threads as script variables to the executable scripts for each code. I'd like to additionally pass them as environment variables. It makes it a bit neater, but more importantly it would mean we no longer need separate scripts for mpi and non mpi version and also allow the dynamically created job classes (wrap_executable) to take more than one core.

  • Set env vars run GenericJob.run_static
  • Remove error when trying to run a job with more than one core when no mpi executable is present
  • Emit a warning in this case

Tasks

Preview Give feedback
@pmrv pmrv added the enhancement New feature or request label Jun 18, 2024
@pmrv pmrv self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant