Skip to content
Snippets Groups Projects
Commit 6fe9c039 authored by thawn's avatar thawn
Browse files

added singularity-exec script

parent 9b7d565e
No related merge requests found
#!/bin/bash
if [ -d "$1" ]; then
wd=$1
else
wd=$(pwd)
fi
set -- "${@:2}"
userhome=$(ls -l "$HOME" | cut -d ">" -sf 2)
userhome=${userhome## }
singularity exec --writable-tmpfs -C --env "USER=$USER" --nv --pwd "$wd" -B "/home/$userhome/" -B "/etc/OpenCL" -B "/home/$userhome/.ssh:/.ssh" -B /projects -B /scratch "$@"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment