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

Detecting the HPC environment #72

Open
tjhunter opened this issue Mar 13, 2025 · 5 comments
Open

Detecting the HPC environment #72

tjhunter opened this issue Mar 13, 2025 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@tjhunter
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

We need a script that detects the right HPC environment to point to the appropriate configuration files.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Organisation

No response

@tjhunter tjhunter added the enhancement New feature or request label Mar 13, 2025
@grassesi
Copy link

It should be possible to detect the hpc-platform by using the hostname command

@clessig
Copy link
Collaborator

clessig commented Mar 15, 2025

It should be possible to detect the hpc-platform by using the hostname command

Great! Can we use this to appropriately set the env variables, e.g. for the paths?

@grassesi
Copy link

sure, I would suggest to bundle up all that information into a file together with a regex or something similar that can be matched against the hostname output. This way all platform information is self contained/describing

@tjhunter
Copy link
Collaborator Author

I would have a script for that, rather than manipulating the environment. Such manipulation tends to break with process forking, venvs and slurm.

@clessig
Copy link
Collaborator

clessig commented Mar 17, 2025

I think this should go to the private repo since it's specific to the machines we are currently working on. If there's a great way to do it through the pyproject.toml, which is full transparent to the user, then I might be convinced otherwise.

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
Status: No status
Development

No branches or pull requests

3 participants