Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing Cupy installation instructions #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwysocki
Copy link
Collaborator

@dwysocki dwysocki commented Jan 6, 2021

Most users will not want to compile Cupy from source. I have expanded the Cupy installation guide to explain how to get the version appropriate for your system.

Most users will not want to compile Cupy from source.  I have expanded the Cupy installation guide to explain how to get the version appropriate for your system.
@dwysocki dwysocki requested a review from oshaughn January 6, 2021 00:40
@@ -61,10 +61,15 @@ The code also requires a working version of glue, supporting `glue.ligolw.ligolw
The code uses cupy to access GPUs. If you don't have one, the code will still work.
If you do need one, make sure to install cupy **on a machine that supports GPUs **

You probably do not want to pip install `cupy` directly, but rather a pre-compiled version for your system's CUDA version. To find your system's version (assuming it's installed) run `nvidia-smi`, and look for "CUDA Version" in the top-right. For version X.Y, the appropriate cupy package will be called `cupy-cudaXY` (e.g., if you have CUDA 11.0, install `cupy-cuda110`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is strictly speaking not accurate. CUDA Version here refers to the maximal CUDA Toolkit version supported by the driver version reported on its left, but what you really need is the runtime library version installed locally, which can be decoupled/fall behind this version (say you have CUDA 10.2 installed, but you upgrade the driver to 11.1). Perhaps it's better to use nvcc --version if there is a local installation available to check.

FYI in some environments where there is no CUDA Toolkit installed locally, but has the driver installed, you can install CuPy from Conda-Forge:

conda install -c conda-forge cupy cudatoolkit=X.Y

X.Y is again up to the driver version. The cudatoolkit contains all CUDA runtime libraries (but no nvcc or the compiler toolchain).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants