Repository: incubator-singa Updated Branches: refs/heads/master c61a0d8b8 -> 00573e26b
SINGA-359 Create alias for conda packages Add documentation about the dummy packages. Passed manual test. Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/d5804196 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/d5804196 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/d5804196 Branch: refs/heads/master Commit: d5804196142b70fb54e42a9fdfcbe470154484ca Parents: 62073ee Author: wang wei <[email protected]> Authored: Sat May 12 14:17:47 2018 +0700 Committer: wang wei <[email protected]> Committed: Sat May 12 14:19:33 2018 +0700 ---------------------------------------------------------------------- tool/conda/README.md | 7 ++++--- tool/conda/cpu/README.md | 30 ++++++++++++++++++++++++++++++ tool/conda/cpu/meta.yaml | 4 ---- tool/conda/gpu/README.md | 32 ++++++++++++++++++++++++++++++++ tool/conda/gpu/meta.yaml | 4 ---- 5 files changed, 66 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/d5804196/tool/conda/README.md ---------------------------------------------------------------------- diff --git a/tool/conda/README.md b/tool/conda/README.md index 19b55b3..393330c 100644 --- a/tool/conda/README.md +++ b/tool/conda/README.md @@ -5,7 +5,7 @@ ## Environment variables -Build string is a part of the conda package specification. We include the cuda and cudnn version in it if Singa is compiled with CUDA enabled. +Build string is a part of the conda package specification. We include the cuda and cudnn version in it if Singa is compiled with CUDA enabled. # for singa with gpu, e.g. cuda8.0-cudnn7.0.5 export BUILD_STR=cudax.y-cudnna.b.c @@ -14,7 +14,7 @@ Build string is a part of the conda package specification. We include the cuda a export BUILD_STR=cpu -To package Singa with CUDA and CUDNN, +To package Singa with CUDA and CUDNN, export CUDNN_PATH=<path to cudnn folder> @@ -30,4 +30,5 @@ You will see the package path from the screen output. To clean the cache - conda clean -ay \ No newline at end of file + conda clean -ay + http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/d5804196/tool/conda/cpu/README.md ---------------------------------------------------------------------- diff --git a/tool/conda/cpu/README.md b/tool/conda/cpu/README.md new file mode 100644 index 0000000..39f21b7 --- /dev/null +++ b/tool/conda/cpu/README.md @@ -0,0 +1,30 @@ +The conda package specification includes the package name (i.e. singa), version and build string (could be very long). +To install a certain Singa package, we run + + conda install -c nusdbsystem singa=<version>=<build string> + +It is inconvenient to type all 3 parts when running the installation commands. +The meta.yml file in this folder is to create a conda package `singa-cpu` as +an alias of one specific Singa package. +It does nothing except creating a dummy conda package that depends on one real +cpu version singa package. For example, the following line in meta.yml indicates +that singa-cpu depends on singa with version 1.1.1, python version=3.6 + + - singa 1.1.1 py36_cpu + +Therefore, when we run + + conda install -c nusdbsystem singa-cpu + +The dependent Singa package will be installed. +By default, singa-cpu depends on the latest Singa (py3.6). +When we have a new Singa version available, we need to update the meta.yml file to +change the dependency. + +To build this package and upload it + + conda config --add channels nusdbsystem + conda build . + anaconda -t $ANACONDA_UPLOAD_TOKEN upload -u nusdbsystem -l main <path to the singa-cpu package> + +where $ANACONDA_UPLOAD_TOKEN is the upload token associated with nusdbsystem account on anaconda cloud. http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/d5804196/tool/conda/cpu/meta.yaml ---------------------------------------------------------------------- diff --git a/tool/conda/cpu/meta.yaml b/tool/conda/cpu/meta.yaml index fc7adcd..d24e085 100644 --- a/tool/conda/cpu/meta.yaml +++ b/tool/conda/cpu/meta.yaml @@ -2,10 +2,6 @@ package: name: singa-cpu version: 1.1.1 -build: - track_features: - - singa-cpu - requirements: run: - singa 1.1.1 py36_cpu http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/d5804196/tool/conda/gpu/README.md ---------------------------------------------------------------------- diff --git a/tool/conda/gpu/README.md b/tool/conda/gpu/README.md new file mode 100644 index 0000000..5fc00cf --- /dev/null +++ b/tool/conda/gpu/README.md @@ -0,0 +1,32 @@ +The conda package specification includes the package name (i.e. singa), version and build string (could be very long). +To install a certain Singa package we run + + conda install -c nusdbsystem singa=<version>=<build string> + +It is inconvenient to type all 3 parts when running the installation commands. +The meta.yml file in this folder is to create a conda package `singa-gpu` as +an alias of one specific Singa package. +It does nothing except creating a dummy conda package that depends on one real +gpu version singa package. For example, the following line in meta.yml indicates +that singa-gpu depends on singa with version 1.1.1, python version=3.6, cuda version=9 +and cudnn version = 7.1.2 + + - singa 1.1.1 py36_cuda9.0_cudnn7.1.2 + + +Therefore, when we run + + conda install -c nusdbsystem singa-gpu + +The dependent Singa package will be installed. +By default, singa-gpu depends on the latest Singa (py3.6) on the latest cuda (and cudnn). +When we have a new Singa version available, we need to update the meta.yml file to +change the dependency. + +To build this package and upload it + + conda config --add channels nusdbsystem + conda build . + anaconda -t $ANACONDA_UPLOAD_TOKEN upload -u nusdbsystem -l main <path to the singa-cpu package> + +where $ANACONDA_UPLOAD_TOKEN is the upload token associated with nusdbsystem account on anaconda cloud. http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/d5804196/tool/conda/gpu/meta.yaml ---------------------------------------------------------------------- diff --git a/tool/conda/gpu/meta.yaml b/tool/conda/gpu/meta.yaml index c81eb90..96435d5 100644 --- a/tool/conda/gpu/meta.yaml +++ b/tool/conda/gpu/meta.yaml @@ -2,10 +2,6 @@ package: name: singa-gpu version: 1.1.1 -build: - track_features: - - singa-gpu - requirements: run: - singa 1.1.1 py36_cuda9.0_cudnn7.1.2
