Skip to content

Commit d4b1e64

Browse files
20260328 - cmdstanr to writable location
1 parent 1b2117c commit d4b1e64

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

hpc.qmd

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ Steps:
422422
1. Copy the Container to Argon
423423
- Use WinSCP to transfer the `.sif` file to Argon (updating your path): `/old_Users/itpetersen/Documents/Containers/`
424424
1. Test Container on Argon
425-
- Inside the Ubuntu terminal, run:
425+
- Inside the Ubuntu terminal, run (updating your path):
426426
```bash
427427
cd /Users/itpetersen/Documents/Containers
428428
apptainer exec r_argon.sif R
@@ -445,6 +445,14 @@ Steps:
445445
```bash
446446
apptainer exec r_argon.sif /opt/mplus/mplus
447447
```
448+
1. Copy the `cmdstan` installation from the container to a writable location:
449+
- Inside the Ubuntu terminal, run (updating your path):
450+
```bash
451+
mkdir -p $HOME/cmdstan_cache
452+
apptainer exec \
453+
/Users/itpetersen/Documents/Containers/r_argon.sif \
454+
cp -r /opt/cmdstan/. $HOME/cmdstan_cache/
455+
```
448456
1. Submit a Job Using the Container on Argon
449457
- e.g.:
450458
```bash
@@ -533,7 +541,9 @@ cd /Users/itpetersen/Documents/Projects/Bayesian_IRT/
533541
module purge
534542
535543
# Run the R script inside container
536-
apptainer exec --writable-tmpfs --cleanenv \
544+
apptainer exec \
545+
--bind $HOME/cmdstan_cache:/opt/cmdstan \
546+
--cleanenv \
537547
/Users/itpetersen/Documents/Containers/r_argon.sif \
538548
Rscript ./Analyses/factorScores.R
539549
```

0 commit comments

Comments
 (0)