You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hpc.qmd
+31-31Lines changed: 31 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -71,23 +71,22 @@ Mac OS Terminal:
71
71
`ssh -p 40 itpetersen@argon.hpc.uiowa.edu` (off campus without VPN)
72
72
73
73
# General Commands
74
-
```
75
-
- `pwd` print current working directory
76
-
- `cd path/to/directory` sets working directory
77
-
- `ls` print files in directory
78
-
- `module load moduleName` loads modules required for analyses; necessary to complete prior to submitting jobs involving R
79
-
- `module list` lists downloaded modules
80
-
- `qsub` submit a job script to Argon processing
81
-
- `R CMD BATCH` submit a single R script to Argon processing
74
+
75
+
-`pwd` print current working directory
76
+
-`cd path/to/directory` sets working directory
77
+
-`ls` print files in directory
78
+
-`module load moduleName` loads modules required for analyses; necessary to complete prior to submitting jobs involving R
79
+
-`module list` lists downloaded modules
80
+
-`qsub` submit a job script to Argon processing
81
+
-`R CMD BATCH` submit a single R script to Argon processing
82
82
Argon requires Linux-compatible file endings, which is problematic for files created outside Argon (using DOS or CRLF file endings). Use the following commands to check if your files are Argon compatible (i.e., Unix LF) and resolve incompatible file endings:
83
-
- `file myfile.job | grep CRLF` checks if a file ending uses the incompatible CRLF format. Remember to check the ending of your file; this script assumes it is .job
- `find ~/DirectoryName -name '*job' -exec dos2unix "{}" \;` converts all files in a directory that end with .job to LF format; change '*job' to change other file types
86
-
```
83
+
-`file myfile.job | grep CRLF` checks if a file ending uses the incompatible CRLF format. Remember to check the ending of your file; this script assumes it is .job
84
+
-`dos2unix myfile.job` converts CRLF file endings to Argon-compatible LF endings
85
+
-`find ~/DirectoryName -name '*job' -exec dos2unix "{}" \;` converts all files in a directory that end with .job to LF format; change '*job' to change other file types
87
86
88
87
# Access Project Directories
89
88
90
-
```
89
+
```bash
91
90
cd /Users/itpetersen/Documents/Projects/Bayesian_IRT/
92
91
cd /Users/itpetersen/Documents/Projects/EXT_pilot/
93
92
cd /Users/itpetersen/Documents/Projects/Multiple_Imputation/
`-pe smp 4`: specify a parellel environment and number of cores to be used (`smp` = shared memory parallel environment)
403
-
- The `OMP_NUM_THREADS` variable is set to '1' by default.
401
+
`-pe smp 4`: specify a parallel environment and number of cores to be used (`smp` = shared memory parallel environment)
402
+
403
+
- The `OMP_NUM_THREADS` variable is set to '1' by default.
404
404
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.
405
405
406
406
`-M isaac-t-petersen@uiowa.edu`: Set the email address to receive email about jobs. This must be your University of Iowa email address.
407
407
408
408
`-m eas`: Specify when to send an email message (;;;; )
409
409
410
-
- `b` = beginning of job
411
-
- `e` = end of job
412
-
- `a` = when job is aborted
413
-
- `s` = when job is suspended
414
-
- `n` = no mail is sent
410
+
- `b` = beginning of job
411
+
- `e` = end of job
412
+
- `a` = when job is aborted
413
+
- `s` = when job is suspended
414
+
- `n` = no mail is sent
415
415
416
416
`-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.)
417
417
@@ -485,8 +485,8 @@ Job dependency (run `Job B` when `Job A` is finished):
485
485
486
486
## Job Time and Memory
487
487
488
-
- Terminated jobs: `qacct -j JOB_ID`
489
-
- Jobs in progress: `qstat -j JOB_ID | grep usage`
488
+
- Terminated jobs: `qacct -j JOB_ID`
489
+
- Jobs in progress: `qstat -j JOB_ID | grep usage`
490
490
491
491
## Cancel Job
492
492
@@ -523,7 +523,7 @@ If you want to compile a more recent version of `R` than is available in the sof
523
523
- If using `packrat`, it is preferable to install packages by source, if possible, but you can remove `type = source`if you want to install binaries
524
524
- Assuming that you do not have a personal library directory you will see
525
525
526
-
```
526
+
```r
527
527
Warning in install.packages("package_name", repos = "http://cran.r-project.org") :
528
528
lib = "/opt/R/3.0.2/lib64/R/library"' is not writable
529
529
@@ -597,7 +597,7 @@ If you want to control which packages are installed in a `renv` project, you can
597
597
598
598
1. Create a `DESCRIPTION` file in the project directory with the following format:
0 commit comments