conda-build is a packaging tool like apt-get, which is associated with anaconda cloud for package management for both python and cpp libraries.
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.
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