CrYOLO/1.6.1 modules
There are _cpu and _gpu flags available, which are selected based on fancy modulefile code (Thanks Achim)
This commit is contained in:
27
Programming/anaconda/files/admintools/kernelwrapper.sh
Executable file
27
Programming/anaconda/files/admintools/kernelwrapper.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
dbgecho() {
|
||||
DBGLOG=/tmp/kernelwrapper-${USER}.log
|
||||
if [[ $DEBUG_JUPYTER_WRAPPER == 1 ]]; then
|
||||
echo "$1" >> $DBGLOG
|
||||
fi
|
||||
}
|
||||
|
||||
DATE=$(date +%Y-%m-%dT%H:%M)
|
||||
dbgecho "$DATE: $@"
|
||||
|
||||
# ensure that module commands are available
|
||||
dbgecho "sourcing profile.bash"
|
||||
source /opt/psi/config/profile.bash
|
||||
|
||||
dbgecho "sourcing conda.sh"
|
||||
source /opt/psi/Programming/anaconda/2019.07/conda/etc/profile.d/conda.sh &>> $DBGLOG
|
||||
|
||||
dbgecho "Running activate"
|
||||
conda activate $1
|
||||
|
||||
# undefine module command since it causes error in the notebook when using
|
||||
# shell escapes
|
||||
unset -f module
|
||||
shift
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user