Skip to content
Snippets Groups Projects
Commit 15c4424b authored by Yannick DAYER's avatar Yannick DAYER
Browse files

docs [install/devel]: install cuda conda packages.

Explains how to set conda_override_cuda to "fake" a GPU presence.
parent d1c96082
No related branches found
No related tags found
1 merge request!30Draft: docs [installation]: Add installation/development instructions
......@@ -123,6 +123,21 @@ description of the changes you made.
A CI pipeline will be run to ensure `pre-commit` is valid, tests pass, and the package
can be built.
## Installing cuda packages with conda
If your machine has no GPU available, conda/mamba will try to install the non-cuda (cpu)
version of packages like pytorch or tensorflow.
There is a way to force conda to install the cuda version of package by setting the
`CONDA_OVERRIDE_CUDA` environment variable to the desired version of cuda that would be
available on a machine with a GPU:
```
devtool env --python=3.10 -P bob ./bob.bio.face
export CONDA_OVERRIDE_CUDA="11.6"
mamba env create -f environment.yaml -n bob_face_devel
```
# Releasing a bob package
Once a package is passing the CI pipelines on the master branch the package is released
......@@ -176,7 +191,7 @@ package in the changelog:
If the changes are more important, you can change `patch` to `minor` or `major` before
calling `devtool gitlab release` on that changelog package entry.
```md
``` md
# bob/bob.bio.face: minor
- bob/bob.bio.face!103: Added baz
......@@ -200,7 +215,17 @@ before trying to release the next one.
## Release of bob/bob
To guarantee that all the packages of bob work between each others the bob/bob package
To guarantee that all the packages of bob work between each others the `bob/bob` package
can be released, that pins all the `bob/*` packages.
TODO is this still true? bob packages can pin other bob packages in them directly...
To do so, follow the same procedure but specify `bob/bob` as target package, with the
version update type (patch, minor, major) corresponding to the maximum of the released
packages for that version:
``` sh
devtool gitlab changelog -o bob_changelog.md bob/bob
# Pleas, edit bob_changelog.md to set the release type
devtool gitlab release bob_changelog.md
```
This will release the `bob` package, useful to install all bob packages at once.
......@@ -105,3 +105,17 @@ bob.bio.face 7.1.3b0 pyhe1939b0_36 https://www.idiap.ch/software/bob/
> conda activate bob_face_beta
> mamba install --override-channels -c https://www.idiap.ch/software/bob/conda/label/beta -c conda-forge -c defaults bob.pad.face
> ```
## Installing cuda packages with conda
If your machine has no GPU available, conda/mamba will try to install the non-cuda (cpu)
version of packages like pytorch or tensorflow.
There is a way to force conda to install the cuda version of package by setting the
`CONDA_OVERRIDE_CUDA` environment variable to the desired version of cuda that would be
available on a machine with a GPU:
```
export CONDA_OVERRIDE_CUDA="11.6"
mamba create -n bob_face --override-channels -c https://www.idiap.ch/software/bob/conda -c conda-forge -c defaults bob.bio.face
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment