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

Add nvidia-smi step to GPU runners #913

Open
IAlibay opened this issue Jul 29, 2024 · 5 comments
Open

Add nvidia-smi step to GPU runners #913

IAlibay opened this issue Jul 29, 2024 · 5 comments

Comments

@IAlibay
Copy link
Member

IAlibay commented Jul 29, 2024

Ethan rightly recommends we have that to make sure we have a GPU.

@mikemhenry
Copy link
Contributor

We are testing on CPU runners right now so I expect nvidia-smi to fail

@IAlibay
Copy link
Member Author

IAlibay commented Jul 29, 2024

@mikemhenry this is more a to-do for later 😅

@ethanholz
Copy link

First, is this something I could open a PR on? I am more than willing to help build this out with you all just would want some direction on how I can be of use in getting this running.

One thing I have been doing when testing on both GPU and CPU is to just add a step that looks like this:

- name: Check for nvidia-smi
   run: "nvidia-smi || true"

That way you get to see if it works and if not it doesn't completely fail the run.

@mikemhenry
Copy link
Contributor

Something else I like to add to "fail fast" is python -m openmm.testInstallation (if doing something that is openmm related) since then its easy to check if OpenMM can get a GPU and the CUDA platform is working

@ethanholz
Copy link

This is something we are also working on. I have isolated the part of that script for identifying platforms into something that provides different exit codes based on what is being tested (i.e. if CUDA exists in an OpenMM context return), more than happy to make this more broadly available via the openmm-gpu-test repo if there is interest.

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

No branches or pull requests

3 participants