README.md 1.06 KB
Newer Older
Saisri Vegesna's avatar
Saisri Vegesna committed
1
2
3
4
5
6
7
8
9
10
A yml and a set of instructions to build a functioning environment for the Research Computing 
# clone this repo:
```
$git clone https://gitlab.rc.uab.edu/rc-data-science/createandparsesacct.git /data/user/saisri/slurm-ds
```
Now load the Anaconda module and create environment on Cheaha cluster:
```
$module load Anaconda3
$conda env create -f environment-slurm-ds.yml
```
Saisri Vegesna's avatar
Saisri Vegesna committed
11
12
13
14
15
If we have to create a database from sacct
```
directoryToUse="/data/user/$USER/VariousNeurology/user/"
sacct -P -u $USER --starttime=2019-01-01 --format user,start,jobid,jobname,state,partition,maxrss,reqmem,reqcpus,node,nnodes,elapsed >> "$directoryToUse"userusage.db
```
Saisri Vegesna's avatar
Saisri Vegesna committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Check to see if the environment works

After the environment is created, you can start up an interactive Jupyter notebook session through rc.uab.edu to check if the environment works.

Under environment setup, specify

```
# Load required modules
module load cuda10.0/toolkit
module load Anaconda3


```

Under Extra jupyter arguments, specify

```
--notebook-dir=/data/user/$USER/slurm-ds
```

For partition, specify

```
pascalnodes
```