tree: 2a0fd3b0c22334f5bf5bc3f9318746b7f1486640 [path history] [tgz]
  1. build.sh
  2. conda_build_config.yaml
  3. meta.yaml
  4. README.md
tool/conda/singa/README.md

Package Singa using conda-build

conda-build is a packaging tool like apt-get, which is associated with anaconda cloud for package management for both python and cpp libraries.

Environment variables

We export the CUDA version if Singa is compiled with CUDA enabled. The cuDNN version is fixed by Singa and cuDNN is installed from anaconda cloud.

# for singa with gpu, e.g. cuda9.0-cudnn7.3.1
export CUDA=9.0

For CPU-only version, we do not export CUDA.

Instruction

After exporting the environment variables, execute the following command to compile Singa and package it

conda-build .  --python 3.6

You will see the package path from the screen output, e.g., xx/yy/singa-1.2.0-cpu.tar.bz2 or xx/yy/singa-1.2.0-cudnn7.3.1_cuda9.0.tar.bz2.

To clean the cache

conda clean -ay