Skip to content

Commit 7e3b62e

Browse files
20260306 - reorganization
1 parent 6a57cca commit 7e3b62e

File tree

1 file changed

+48
-28
lines changed

1 file changed

+48
-28
lines changed

hpc.qmd

Lines changed: 48 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,18 @@ If you are interested in dedicated hardware, contact [research-computing@uiowa.e
5151

5252
`argon.hpc.uiowa.edu`
5353

54+
Using [SecureCRT](https://its.uiowa.edu/securecrt) or [PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/) for an SSH connection:
55+
56+
1. Download [SecureCRT](https://its.uiowa.edu/securecrt) from UIowa Informational Technology Services: <https://its.uiowa.edu/securecrt>
57+
1. In Hostname type `argon.hpc.uiowa.edu` and in username type HawkID
58+
1. Click connect
59+
5460
## Windows
5561

5662
Windows Explorer:
5763

5864
`\\data.hpc.uiowa.edu\argon_home` (username: itpetersen@uiowa.edu or hawkid@uiowa.edu)
5965

60-
Using SecureCRT for an SSH connection:
61-
1. Download SecureCRT from UIowa Informational Technology Services: <https://its.uiowa.edu/securecrt>
62-
2. In Hostname type `argon.hpc.uiowa.edu` and in username type HawkID
63-
3. Click connect
64-
6566
## Mac
6667

6768
Mac OS Terminal:
@@ -89,6 +90,7 @@ Argon requires Linux-compatible file endings, which is problematic for files cre
8990
```bash
9091
cd /Users/itpetersen/Documents/Projects/Bayesian_IRT/
9192
cd /Users/itpetersen/Documents/Projects/EXT_pilot/
93+
cd /Users/itpetersen/Documents/Projects/EXT_ParentReport/
9294
cd /Users/itpetersen/Documents/Projects/Multiple_Imputation/
9395
cd /Users/itpetersen/Documents/Projects/SelfRegulation_IRT/
9496
cd /Users/itpetersen/Documents/Projects/Test/
@@ -450,6 +452,18 @@ Steps:
450452

451453
## Initial run
452454

455+
### Load the Latest Stack
456+
457+
`module load stack`
458+
459+
### Stack 2022.2
460+
461+
```bash
462+
module load stack/2022.2
463+
module load r/4.2.2_gcc-9.5.0
464+
cd path
465+
```
466+
453467
### Installing Linux Packages to Install `R` Packages
454468

455469
```bash
@@ -482,18 +496,6 @@ module load r-dbi/1.1.3_gcc-9.5.0
482496
483497
```
484498

485-
### Load the Latest Stack
486-
487-
`module load stack`
488-
489-
### Stack 2022.2
490-
491-
```bash
492-
module load stack/2022.2
493-
module load r/4.2.2_gcc-9.5.0
494-
cd path
495-
```
496-
497499
## Load Software Stacks
498500

499501
<https://uiowa.atlassian.net/wiki/spaces/hpcdocs/pages/76513440/Argon+Software+List> (archived at <https://perma.cc/WJ4Q-GDUS>)
@@ -502,6 +504,8 @@ cd path
502504

503505
## Job Script {#sec-jobScript}
504506

507+
### Using A Container
508+
505509
```bash
506510
#!/bin/sh
507511
@@ -521,14 +525,14 @@ cd /Users/itpetersen/Documents/Projects/Bayesian_IRT/
521525
522526
# Load the environment modules
523527
module purge
524-
module load stack/2022.2
525-
module load r/4.2.2_gcc-9.5.0
526528
527-
# Run the R script
528-
Rscript ./Analyses/factorScores.R
529+
# Run the R script inside container
530+
apptainer exec --writable-tmpfs --cleanenv \
531+
/Users/itpetersen/Documents/Containers/r_argon.sif \
532+
Rscript ./Analyses/factorScores.R
529533
```
530534

531-
Using a container:
535+
### Using Software Stacks
532536

533537
```bash
534538
#!/bin/sh
@@ -549,11 +553,11 @@ cd /Users/itpetersen/Documents/Projects/Bayesian_IRT/
549553
550554
# Load the environment modules
551555
module purge
556+
module load stack/2022.2
557+
module load r/4.2.2_gcc-9.5.0
552558
553-
# Run the R script inside container
554-
apptainer exec --writable-tmpfs --cleanenv \
555-
/Users/itpetersen/Documents/Containers/r_argon.sif \
556-
Rscript ./Analyses/factorScores.R
559+
# Run the R script
560+
Rscript ./Analyses/factorScores.R
557561
```
558562

559563
### qsub options
@@ -563,7 +567,8 @@ apptainer exec --writable-tmpfs --cleanenv \
563567
- The `OMP_NUM_THREADS` variable is set to '1' by default.
564568
If your code can take advantage of the threading then specify `OMP_NUM_THREADS` to be equal to the number of job cores per node requested.
565569

566-
`-M isaac-t-petersen@uiowa.edu`: Set the email address to receive email about jobs. This must be your University of Iowa email address.
570+
`-M isaac-t-petersen@uiowa.edu`: Set the email address to receive email about jobs.
571+
This must be your University of Iowa email address.
567572

568573
`-m eas`: Specify when to send an email message (; ; ; ; )
569574

@@ -573,7 +578,8 @@ If your code can take advantage of the threading then specify `OMP_NUM_THREADS`
573578
- `s` = when job is suspended
574579
- `n` = no mail is sent
575580

576-
`-l mf=512G`: request a particular quantity of memory you expect to use (to be available for your computation to start; the request is only applicable at scheduling time. It is not a limit.)
581+
`-l mf=512G`: request a particular quantity of memory you expect to use (to be available for your computation to start; the request is only applicable at scheduling time.
582+
It is not a limit.)
577583

578584
`-l h_vmem=512G`: request a particular quantity of virtual memory you expect to use (to be available for your computation to start; the request is only applicable at scheduling time.
579585
It is not a limit.)
@@ -669,6 +675,7 @@ But, there may be more recent version of `R` installed in the "Additional Softwa
669675
## Compile `R`
670676

671677
If you want to compile a more recent version of `R` than is available in the software stacks, see [here](https://brandonlebeau.org/2022/06/02/compile-hpc-iowa/) (archived at <https://perma.cc/C6EX-EZL4>).
678+
However, we now compile the most recent version of `R` (and packages) using a [container](#sec-container).
672679

673680
## Install `R` packages
674681

@@ -921,6 +928,19 @@ Try increasing the max memory available and decreasing the number of cores and/o
921928
922929
<https://gforge.se/2015/02/how-to-go-parallel-in-r-basics-tips/#Memory_load> (archived at <https://perma.cc/2JRF-8Y5F>)
923930
931+
## Error: `$'\r': command not found`
932+
933+
```bash
934+
/opt/sge/default/spool/argon-itf-bx47-36/job_scripts/5685660: line 2: $'\r': command not found
935+
```
936+
937+
That often means your job script has Windows (CRLF) line endings instead of Unix (LF).
938+
You can fix the line endings with the following command:
939+
940+
```bash
941+
dos2unix your_job_file.job
942+
```
943+
924944
# Appendix {#sec-appendix}
925945
926946
## Old Stacks

0 commit comments

Comments
 (0)