Commit 9bca8bc2 authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

Merge branch 'master' of https://gitlab.rc.uab.edu/rrand11/createandparsesacct

Conflicts:
	README.md
parents 0934c527 ab6ec853
......@@ -18,6 +18,12 @@ else
git pull "$URL"
conda env update -f /data/user/$USER/slurm-ds/environment-slurm-ds.yml
fi
<<<<<<< HEAD
=======
```
# Configuring the environment
>>>>>>> ab6ec8536fc1daf2070f8550943b3f28acd0b56f
Configuring the environment
After the environment is created, you can start up an interactive Jupyter notebook session through rc.uab.edu to check if the environment works.
......@@ -25,8 +31,14 @@ Under environment setup, specify
# Load required modules
module load cuda10.0/toolkit
module load Anaconda3/2019.10
<<<<<<< HEAD
=======
```
>>>>>>> ab6ec8536fc1daf2070f8550943b3f28acd0b56f
Under Extra jupyter arguments, specify
--notebook-dir=/data/user/$USER/slurm-ds
<<<<<<< HEAD
For partition, set partition to
express
for time up to 2 hours. Also make sure to specify the number of hours field to match. For up to 12 hours, the
......@@ -39,4 +51,31 @@ Verify the environment loaded correctly by running the first cell of the slurm-2
Creating a text version of sacct output
If we have to create a database from sacct
directoryToUse="/data/user/$USER/group"
sacct -P -u $USER --starttime=2019-01-01 --format user,start,jobid,jobname,state,partition,maxrss,reqmem,reqcpus,node,nnodes,elapsed >> "$directoryToUse"group.txt
\ No newline at end of file
sacct -P -u $USER --starttime=2019-01-01 --format user,start,jobid,jobname,state,partition,maxrss,reqmem,reqcpus,node,nnodes,elapsed >> "$directoryToUse"group.txt
=======
```
For partition, set partition to
```
express
```
for time up to 2 hours. Also make sure to specify the number of hours field to match. For up to 12 hours, the
```
short
```
partition can be used.
After the Jupyter notebook is started, click on the blue "Connect to Jupyter" button.
Once the Jupyter session is active, select the `slurm-2sql` notebook. Then change the kernel, via `Kernel->Change kernel->Python [conda env:.conda-slurm-ds]`
Verify the environment loaded correctly by running the first cell of the `slurm-2sql` notebook (with the library imports)
# Creating a text version of sacct output
If we have to create a database from sacct
```
directoryToUse="/data/user/$USER/group"
sacct -P -u $USER --starttime=2019-01-01 --format user,start,jobid,jobname,state,partition,maxrss,reqmem,reqcpus,node,nnodes,elapsed >> "$directoryToUse"group.txt
```
>>>>>>> ab6ec8536fc1daf2070f8550943b3f28acd0b56f
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment