Skip to content

Commit 787a316

Browse files
Update compute.md
Added instructions for setting up Julia on Alpine
1 parent 3f87ee1 commit 787a316

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

posts/compute.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,38 @@ Files may be moved with the [`mv` command](https://ubuntu.com/tutorials/command-
4242

4343
### System Administration
4444
See [ADCL System Administration](https://o365coloradoedu-my.sharepoint.com/:w:/r/personal/bekr4901_colorado_edu/_layouts/15/Doc.aspx?sourcedoc=%7B6DBA0F17-9DE1-4C2B-9E0E-42634F60D570%7D&file=INTERNAL%20-%20ADCL%20System%20Administration.docx&action=default&mobileredirect=true)
45+
46+
## CU Computing Resources
47+
### Alpine
48+
Alpine is a [well documented](https://curc.readthedocs.io/en/latest/clusters/alpine/index.html) CU-wide SLURM cluster. To get started with Julia on Alpine:
49+
50+
* [Make an account](https://rcamp.rc.colorado.edu/accounts/account-request/create/verify/ucb)
51+
* You may need to wait for some time between making an account and logging in for the first time, the documentation says ~15 minutes
52+
* Go to the [OnDemand page](https://ondemand.rc.colorado.edu/)
53+
* If you get an error, try either clearing your cache/cookies or starting an incognito window
54+
* Request an interactive session
55+
* Interactive Apps (top of screen) -> Jupyter Session
56+
* Check "Use JupyterLab"
57+
* Preset configuration "4 cores, 4 hours"
58+
* Launch
59+
* This should take less than a minute to queue and initialize
60+
* Install and configure Julia
61+
* Click the host link i.e. `>_c3cpu-c15-u34-3.rc.int.colorado.edu`
62+
* Either save and execute the following bash script, or run line by line. This may take several minutes to run
63+
```
64+
#!/bin/bash
65+
echo export JULIA_DEPOT_PATH=/projects/$USER/.julia >> ~/.bashrc
66+
echo export JULIAUP_DEPOT_PATH=/projects/$USER/.julia >> ~/.bashrc
67+
source ~/.bashrc
68+
curl -fsSL https://install.julialang.org | sh
69+
source ~/.bashrc
70+
julia --threads auto -e 'import Pkg; Pkg.add("IJulia"); using IJulia; IJulia.installkernel("Julia", "--threads=auto"; env=Dict("JULIA_DEPOT_PATH"=>"/projects/" * ENV["USER"] * "/.julia"))'
71+
```
72+
* Log out from your shell and close the tab
73+
* Back on the OnDemand page "Connect to Jupyter"
74+
* In JupyterLab
75+
* File -> Open from Path… -> /home/{Username} i.e. /home/jawa5671
76+
* Create a Julia notebook
77+
* println("Hello world!")
78+
79+
Note: You may need to re-run the `IJulia.installkernel` function when you install a new version of Julia

0 commit comments

Comments
 (0)