Skip to content

Add Slurm email notification flags to job script examples#1221

Open
Premas wants to merge 2 commits into
uabrc:mainfrom
Premas:fix-slurm-tutorial
Open

Add Slurm email notification flags to job script examples#1221
Premas wants to merge 2 commits into
uabrc:mainfrom
Premas:fix-slurm-tutorial

Conversation

@Premas

@Premas Premas commented May 8, 2026

Copy link
Copy Markdown
Contributor

Pull Request

This PR adds optional Slurm email notification settings to job script examples to help users track job status

Intent

Proposed Changes

  • Included changes in Slurm tutorial examples.

  • Removed line-specific references and rewrote content with context-based descriptions

  • Changes to Section Headers

Changes to Page URLs

Related or Fixed Issues

Fixes #1187

Accessibility Checklist

I have ensured all of the following for new or changed content:

  • all images have appropriate alt text. Guidelines
  • all images with text have sufficient contrast ratio. Checker
  • all image text is transcribed or described in body text.
  • all technical terms, jargon, and abbreviations are introduced before they are used.

Style Checklist

I have done all of the following:

  • searched for other relevant pages and crosslinked from my content to them.
  • searched for other relevant pages and crosslinked from them to my content.
  • added redirects in mkdocs.yml for any moved headers or pages.
  • defined new technical terms, jargon, and abbreviations in the glossary.
  • searched for existing technical terms, jargon, and abbreviations in the glossary and added crosslinks to them.
  • properly formatted and introduced key branding terms. List here.

@Premas Premas marked this pull request as draft May 8, 2026 19:09
@Premas Premas marked this pull request as ready for review May 19, 2026 15:00
@Premas Premas added the pr: review PR is ready for review label May 19, 2026
@Premas Premas requested review from bdu-birhanu and iam4tune May 22, 2026 19:33

@bdu-birhanu bdu-birhanu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good to me. Just a minor typo commented below, then it can be merged.

```

Copy the below MATLAB script as `parfor_sum_array.m`. At the beginning, the script defines a function `sum_array` and variable `array_size` is passed as an input argument. This function uses multithreading with the `parfor` option to calculate the sum of elements in an array. On Line 10, the number of workers (`num_workers`) is set to the value of the environment variable `SLURM_CPUS_PER_TASK` i.e. 4. The script then creates a parallel pool using lines 13-17, utilizing the specified number of workers. The parallel computation of summing up of array elements is performed using a `parfor` loop in lines 23-27. By using `parfor` with a pool of workers, operations are run in parallel for improved performance. More insights on usage of `parfor` can be found in the official [MATLAB page](https://www.mathworks.com/help/matlab/ref/parfor.html).
Copy the below MATLAB script as `parfor_sum_array.m`. At the beginning, the script defines a function `sum_array` and variable `array_size` is passed as an input argument. This function uses multithreading with the `parfor` option to calculate the sum of elements in an array. Thhe number of workers (`num_workers`) is set to the value of the environment variable `SLURM_CPUS_PER_TASK` i.e. 4. The script then creates a parallel pool, utilizing the specified number of workers. The parallel computation of summing up of array elements is performed using a `parfor` loop. By using `parfor` with a pool of workers, operations are run in parallel for improved performance. More insights on usage of `parfor` can be found in the official [MATLAB page](https://www.mathworks.com/help/matlab/ref/parfor.html).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a typo: "Thhe" should be "The".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: review PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Slurm email notification flags to examples

2 participants