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:
2020-07-15 16:57:12 +02:00
parent 60f98fa57a
commit 308fd1c890
8 changed files with 75 additions and 7 deletions

View File

@@ -2,7 +2,8 @@
IMPORTANT! DON'T INSTALL WITH AURISTOR. Use an OpenAFS system (e.g. pmod6)
export TMPDIR=/opt/tmp/bliven_s
export TMPDIR=/opt/tmp/$USER
export XDG_CACHE_HOME=/opt/tmp/$USER/.cache
CONDA_COPY_ALWAYS=1 conda env create --file cryolo.yml
conda activate cryolo

View File

@@ -1,4 +1,4 @@
name: cryolo-1.5.6-gpu
name: cryolo-1.6.1-cpu
channels:
- defaults
dependencies:
@@ -11,4 +11,4 @@ dependencies:
- intel-openmp==2019.4
- pip
- pip:
- cryolo[gpu]==1.5.6
- cryolo[cpu]==1.6.1

View File

@@ -0,0 +1,14 @@
name: cryolo-1.6.1-gpu
channels:
- defaults
dependencies:
- python=3.6
- pyqt=5
- cudnn=7.1.2
- numpy==1.14.5
- cython
- wxPython==4.0.4
- intel-openmp==2019.4
- pip
- pip:
- cryolo[gpu]==1.6.1

View File

@@ -0,0 +1,14 @@
# simulate `conda init` type hook
# Expects CONDA_EXE and CONDA_PREFIX to be set
__conda_setup="$("${CONDA_EXE:-conda}" 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "${CONDA_PREFIX:?CONDA_PREFIX not set}/etc/profile.d/conda.sh" ]; then
. "${CONDA_PREFIX}/etc/profile.d/conda.sh"
else
export PATH="${CONDA_PREFIX}/bin:$PATH"
fi
fi
unset __conda_setup

View 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 "$@"

View File

@@ -57,7 +57,8 @@ switch [module-info mode] {
# but we need to prevent conflicts with a conda from a different source.
# puts stderr "DEBUG: Using conda from $P/$V\n"
puts stdout "source \"$PREFIX/conda/etc/profile.d/conda.sh\";\n"
#puts stdout "source \"$PREFIX/conda/etc/profile.d/conda.sh\";\n"
puts stdout "source $PREFIX/admintools/conda_setup.sh;\n"
# Activate base? No: anaconda should just provide the conda tool
#puts stdout "conda activate;\n"