-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from tlambert03/update-readme
update docs and readme
- Loading branch information
Showing
3 changed files
with
92 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,37 @@ | ||
Installation | ||
============ | ||
|
||
Via conda | ||
--------- | ||
|
||
Precompiled libraries are available for Windows, Linux, and Mac via the conda package manager | ||
|
||
Install `anaconda <https://www.anaconda.com/distribution/#download-section>`_ or `miniconda <https://docs.conda.io/en/latest/miniconda.html>`_, add a couple channels to your config, then install pycudadecon: | ||
The conda package includes the required pre-compiled libraries for Windows and Linux. | ||
*macOS is not supported* | ||
|
||
.. code-block:: bash | ||
$ conda config --add channels conda-forge | ||
$ conda config --add channels talley | ||
# in some cases, installing into the base environment has | ||
# prevented pycudadecon from functioning properly... | ||
# best to install into a clean environment along with | ||
# whatever other packges you want (e.g. ipython, jupyter, etc) | ||
$ conda create -n decon_env pycudadecon | ||
# then activate that environment each time before using | ||
$ conda activate decon_env | ||
conda install -c conda-forge pycudadecon | ||
GPU requirements | ||
---------------- | ||
|
||
This software requires a CUDA-compatible NVIDIA GPU. | ||
The underlying libraries (llspylibs) have been compiled against different versions of the CUDA toolkit. The required CUDA libraries are bundled in the conda distributions so you don't need to install the CUDA toolkit separately. If desired, you can pick which version of CUDA you'd like based on your needs, but please note that different versions of the CUDA toolkit have different GPU driver requirements (the OS X build has only been compiled for CUDA 9.0). To see which version you have installed currently, use `conda list llspylibs`, and to manually select a specific version of llspylibs: | ||
This software requires a CUDA-compatible NVIDIA GPU. The underlying cudadecon | ||
libraries have been compiled against different versions of the CUDA toolkit. | ||
The required CUDA libraries are bundled in the conda distributions so you don't | ||
need to install the CUDA toolkit separately. If desired, you can pick which | ||
version of CUDA you'd like based on your needs, but please note that different | ||
versions of the CUDA toolkit have different GPU driver requirements: | ||
|
||
====== ============ ========== ============ | ||
CUDA Linux driver Win driver Install With | ||
====== ============ ========== ============ | ||
10.0 ≥ 410.48 ≥ 411.31 ``conda install llspylibs=<version>=cu10.0`` | ||
9.0 ≥ 384.81 ≥ 385.54 ``conda install llspylibs=<version>=cu9.0`` | ||
====== ============ ========== ============ | ||
To specify a specific cudatoolkit version, install as follows (for instance, to use | ||
``cudatoolkit=10.2``) | ||
|
||
...where ``<version>`` is the version of llspylibs you'd like to install (use ``conda search llspylibs`` to list available versions) | ||
|
||
If you run into trouble, feel free to `open an issue on github <https://github.com/tlambert03/pycudadecon/issues>`_ and describe your setup. | ||
====== ============ ========== | ||
CUDA Linux driver Win driver | ||
====== ============ ========== | ||
10.2 ≥ 440.33 ≥ 441.22 | ||
11.0 ≥ 450.36.06 ≥ 451.22 | ||
11.1 ≥ 455.23 ≥ 456.38 | ||
11.2 ≥ 460.27.03 ≥ 460.82 | ||
====== ============ ========== | ||
|
||
|
||
For development | ||
--------------- | ||
|
||
If you'd like to contribute to pycudadecon, pull requests are welcome! Minimally, you will want to have llspylibs installed in your conda environment. Here's an example for creating a new environment (here: `pycdenv`), installing some dependencies, cloning the repo from github, then running the tests. | ||
|
||
.. code-block:: bash | ||
$ conda create -n pycdenv -c talley llspylibs tifffile numpy pytest python=3.7 | ||
$ git clone https://github.com/tlambert03/pycudadecon.git | ||
$ cd pycudadecon | ||
# run tests with pytest | ||
$ pytest | ||
# or with unittest | ||
$ python -m unittest discover test | ||
If you run into trouble, feel free to `open an issue on github | ||
<https://github.com/tlambert03/pycudadecon/issues>`_ and describe your setup. |