Skip to content

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

@pmrv

Description

@pmrv

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
- [ ] Update executable script documentation

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions