Commit 1e3bf880 authored by bliven_s's avatar bliven_s

Merge branch 'crYOLO' into 'master'


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
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/" ''
curl -fsSLo "$SRC_DIR/cryoloBM.tgz" ''
curl -fsSLo "$SRC_DIR/cryolo.tgz" ''
pbuild::configure() {
pbuild::compile() {
pbuild::install() {
mkdir -p $PREFIX
# Install conda
bash "$SRC_DIR/" -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'
# cryoloBM download url
# cryolo download url. Default:
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"
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
- defaults
- 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