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

Use OpenACC to detect GPU presence #25

Merged
merged 2 commits into from
Jan 7, 2023

Conversation

sfiligoi
Copy link
Collaborator

@sfiligoi sfiligoi commented Jan 7, 2023

An NVIDIA GPU may be present but cannot be used.
E.g. in SLURM when a GPU is not explicitly requested.
This patch uses the OpenACC function to actually check if the GPU is usable.

@sfiligoi
Copy link
Collaborator Author

sfiligoi commented Jan 7, 2023

Addresses issue #24 .

@sfiligoi
Copy link
Collaborator Author

sfiligoi commented Jan 7, 2023

Verified by hand that it works as expected in a SLURM environment.
With and without --gres=gpu:1

@sfiligoi sfiligoi merged commit 984e81c into biocore:main Jan 7, 2023
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.

2 participants