Page MenuHomec4science

install_pyeddl.sh
No OneTemporary

File Metadata

Created
Tue, May 14, 15:20

install_pyeddl.sh

#!/bin/sh
# DEPENDENCIES:
# conda install numpy pybind11 pytest
# might want to set up a conda environment
git clone --recurse-submodules https://github.com/deephealthproject/pyeddl.git
export EDDL_DIR=/home/$USER/eddl
cd pyeddl/
PYEDDL_FOLDER=$(pwd)
cd third_party/eddl
# This line is necessary because otherwise building shared library fails (as stated in the pyeddl installation guide) but no issue on eddl's github is open
git apply ../../eddl_0.3.patch
# Compiling eddl
mkdir build
cd build
cmake .. -DEDDL_SHARED=ON -DBUILD_PYTHON=ON -DBUILD_TESTS=ON -DBUILD_TARGET=CPU -DBUILD_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=$EDDL_DIR
make -j$(nproc)
# Moving relevant files in /home/$USER/eddl/include and /home/$USER/eddl/lib
make install
# If compiled for GPU here must export the EDDL_WITH_CUDA environment variable
#
#
#
cd $PYEDDL_FOLDER
python3 setup.py install

Event Timeline