The hpc-examples
repository provides a collection of curated scripts and workflows for Stanage and Bessemer high-performance computing (HPC) systems. These examples are designed to help users efficiently use SLURM schedulers, manage resources, and run HPC applications.
This repository is public and intended to be used as a resource by HPC administrators, users, and maintainers for setting up and executing various HPC tasks.
-
docs/
Documentation files. -
examples/
Example SLURM job scripts and workflows. -
tests/
SLURM test scripts for validating application functionalityi, configurations, etc. -
tools/
Helper scripts for users. -
scripts/
General-purpose scripts for users. -
configs/
Example configuration files for commonly used HPC applications.
A comprehensive collection of SLURM scripts for different use cases:
- Optimized resource allocation.
- Parallel and distributed computing.
- Custom job arrays for batch processing.
Ready-to-use examples for popular HPC applications, examples:
- Python (MPI, TensorFlow, PyTorch).
- MATLAB.
- Ansys.
- Abaqus.
-
Clone the Repository Clone the repository to your local machine or HPC system:
git clone https://github.com/rcgsheffield/hpc-examples.git
-
Navigate Through Examples Browse the directory structure to locate scripts relevant to your needs. For example:
cd hpc-examples/examples
-
Run or Adapt Scripts Use the scripts as-is or modify them to fit your specific requirements. For SLURM job submission:
sbatch example_script.sh
-
Refer to Documentation Check the documentation for detailed guides on using the examples and configuring your HPC environment.
We welcome contributions from the community. To contribute:
- Fork the repository.
- Create a new branch for your changes.
- Add your scripts or updates.
- Submit a pull request with a detailed description of your changes.
- Scripts should be well-documented with comments explaining each section.
- Follow consistent naming conventions (e.g.,
slurm-<description>.sh
). - Use descriptive, kebab-case names for files and directories.
- Include version numbers in filenames for version-specific examples.
- Ensure your scripts are tested on an HPC system.
If you encounter any issues or have questions, please raise an issue in the GitHub repository or contact the maintainers.
This repository is licensed under the MIT License. You are free to use, modify, and distribute the content with attribution.