Commit 1e3bf880 authored by bliven_s's avatar bliven_s

Merge branch 'crYOLO' into 'master'

CrYOLO/1.5.6

See merge request Pmodules/buildblocks!86
parents 90b528ba 67c09995
# crYOLO
crYOLO/1.2.3 was built as a miniconda independent environment.
Subsequent versions are deployed as central conda environments.
This significantly changed the build process.
## Adding New Versions
To add a new version, first create the conda environment, as described in
../../Programming/anaconda/2019.07/conda-env-defs/cryolo/.
Next, update files/variants with the new version and run `./build <VERSION>` to
install the modulefile
#!/usr/bin/env modbuild
pbuild::add_to_group 'EM'
pbuild::prep() {
echo "prepping"
mkdir -p "$SRC_DIR"
curl -fsSLo "$SRC_DIR/miniconda.sh" 'https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh'
curl -fsSLo "$SRC_DIR/cryoloBM.tgz" 'ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_BM_V1_1_1/cryoloBM-1.1.1.tar.gz'
curl -fsSLo "$SRC_DIR/cryolo.tgz" 'ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_V1_2_3/cryolo-1.2.3.tar.gz'
:
}
......@@ -19,22 +15,6 @@ pbuild::compile() {
}
pbuild::install() {
mkdir -p $PREFIX
# Install conda
bash "$SRC_DIR/miniconda.sh" -b -p $PREFIX/conda
# Create environment
$PREFIX/conda/bin/conda create -y --name crYOLO anaconda python=3.6 pyqt=5 cudnn=7.1.2 numpy
# Activate
source $PREFIX/conda/bin/activate crYOLO
# Install
pip install $SRC_DIR/cryolo.tgz
pip install $SRC_DIR/cryoloBM.tgz
# Deactivate
source deactivate
:
}
# crYOLO configuration variables
# Miniconda installer filename. Defaults to 'latest'
MINICONDA_VERSION='Miniconda2-4.5.12-Linux-x86_64.sh'
# cryoloBM download url
CRYOLOBM_URL='ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_BM_V1_1_1/cryoloBM-1.1.1.tar.gz'
# cryolo download url. Default:
#CRYOLO_URL='ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_V1_2_3/cryolo-1.2.3.tar.gz'
crYOLO/1.2.3 unstable cuda/9.0.176
crYOLO/1.5.6_gpu unstable anaconda/2019.07
......@@ -32,20 +32,17 @@ switch -- $shelltype {
}
}
#puts stderr "Switching crYOLO mode to [module-info mode]"
#puts stdout "{ date; echo Switching crYOLO mode to [module-info mode] ; } >> /gpfs/home/bliven_s/cryolo_mod.log;\n"
#set useflag [string map {{:} {}} $USEFLAGS]
#puts stderr "conda activate cryolo-${V_PKG}-${USEFLAGS%\n"
switch [module-info mode] {
"load" {
#puts stderr "source $PREFIX/conda/bin/activate crYOLO"
puts stdout "source $PREFIX/conda/bin/activate crYOLO;\n"
# Relies on the anaconda module being loaded since we need to update the path
puts stdout "conda activate cryolo-1.5.6-gpu;\n"
}
"unload" -
"remove" {
#puts stderr "source deactivate"
puts stdout "source $PREFIX/conda/bin/deactivate;\n"
puts stdout {unset $(set|sed -rn 's/^(_?conda[a-z_]*).*$/\1/pI');}
puts stdout "conda deactivate;\n"
}
}
# INSTALLATION
IMPORTANT! DON'T INSTALL WITH AURISTOR. Use an OpenAFS system (e.g. pmod6)
export TMPDIR=/opt/tmp/bliven_s
CONDA_COPY_ALWAYS=1 conda env create --file cryolo.yml
conda activate cryolo
The alternate TMPDIR is required on pmod6 because /tmp is too small for pip to expand all wheel files.
name: cryolo-1.5.6-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.5.6
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment