generated from natbutter/gmtsing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyslowfast.build
40 lines (30 loc) · 1.17 KB
/
pyslowfast.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
#A singularity script to run the repo
#https://github.com/natbutter/artemis-pytorch.git
#Developed in the docker cotainer
#If you use this script you must acknowledge SIH
#"The authors acknowledge the technical assistance provided by the Sydney Informatics Hub, a Core Research Facility of the University of Sydney."
#Build with:
#sudo singularity build --writable pyslowfast.img pyslowfast.build
#Run with
#Mount the current directory in the container at /project, change directories and execute your script
#singularity exec --nv -B $PBS_O_WORKDIR:/project $PBS_O_WORKDIR/pyslowfast.img cd /project && python testGPU.py
###################
Bootstrap: docker
From: nbutter/pyfastslow
#Directories are mounted on Artemis and NCI, so we add them here to bind in at runtime.
#Change these as required by your HPC cluster
%setup
#mkdir ${SINGULARITY_ROOTFS}/workspace
%files
%labels
Maintainer nathaniel.butterworth
at the Sydney Informatics Hub
Version v1.0
Build with:
sudo singularity build --writable pyslowfast.img pyslowfast.build
singularity exec --nv pyslowfast.img python
%post
%environment
export PATH=/root/miniconda3/bin:$PATH
%runscript
exec /bin/bash