-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
6,719 additions
and
76 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "Homework 4 -- Working with Slurm" | ||
format: | ||
html: | ||
embed-resources: true | ||
--- | ||
|
||
# Due Date | ||
|
||
There's no due date for this assignment. Use it to practice with Slurm. | ||
|
||
# Submitting Jobs to Slurm | ||
|
||
## Question 1 | ||
|
||
To practice your skills with Slurm, submit the following R code using (a) an `R` script with `sbatch` and (b) using the `slurmR::sourceSlurm` function: | ||
|
||
```r | ||
cat(do.call(sprintf, c( | ||
list("Hello from\njobid: %s\ndir: %s, and\nhost: %s\n"), | ||
as.list(Sys.getenv( | ||
c("SLURM_JOB_ID", "SLURM_SUBMIT_DIR", "SLURM_JOB_NODELIST") | ||
)) | ||
))) | ||
``` | ||
|
||
We recommend you use the `notchpeak-shared-short` account+partition. Remember that you have to be explicit about the requested resources. | ||
|
||
## Question 2 | ||
|
||
Repeat the previous exercise, but this time request two nodes. |
Oops, something went wrong.