Add scripts to test GPUs in the cluster#16
Draft
lauraporta wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
What is this PR
Why is this PR needed?
This pull request introduces a set of generalized scripts for running arbitrary Python scripts across all available GPU nodes in an HPC cluster. You can specify which conda environment to use and with which module to test your script.
There are a few hardcoded parameters related to our cluster, as the name of the partitions.
I originally made these scripts to test the usage of Cellpose across GPUs. I see sometimes erratic behavior across GPUs, it is useful to know which ones to exclude when submitting an array of SLURM jobs.
What does this PR do?
gpu_node_runner.sh, a robust SBATCH script for running Python scripts on a single GPU node.run_on_all_gpu_nodes.sh, a wrapper script that discovers all available GPU nodes across multiple partitions and submits jobs to each node, tracking job submissions and failures.README.mdwith usage instructions, argument descriptions.example_gpu_test.py, a template Python script that performs basic GPU checks using PyTorch, intended for use with the runner scripts.How has this PR been tested?
Run in our cluster.
Is this a breaking change?
No
Checklist: