Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
createAndParseSACCT
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
John-Paul Robinson
createAndParseSACCT
Commits
8c217b75
Commit
8c217b75
authored
5 years ago
by
Saisri Vegesna
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
e0a20660
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+24
-9
24 additions, 9 deletions
README.md
with
24 additions
and
9 deletions
README.md
+
24
−
9
View file @
8c217b75
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:
# clone this repo and update with the job composer
Copy and paste the following job script into a job composer job on rc.uab.edu
```
$module load Anaconda3
$conda env create -f environment-slurm-ds.yml
#!/bin/bash
#SBATCH --partition=pascalnodes
#SBATCH --gres=gpu:1
#SBATCH --mem-per-cpu=4000
module load cuda10.0/toolkit
module load Anaconda3
FOLDER
=
/data/user/
$USER
/slurm-ds
URL
=
https://gitlab.rc.uab.edu/rc-data-science/createandparsesacct.git
if
[
!
-d
"
$FOLDER
"
]
;
then
git clone
"
$URL
"
"
$FOLDER
"
conda
env
create
-f
/data/user/
$USER
/slurm-ds/environment-slurm-ds.yml
else
cd
$FOLDER
git pull
"
$URL
"
conda
env
update
-f
/data/user/
$USER
/slurm-ds/environment-slurm-ds.yml
fi
```
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
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
.db
```
# Check to see if the environment works
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment