-
Notifications
You must be signed in to change notification settings - Fork 57
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
Installing CuPy via Anaconda breaks GeNN #558
Comments
It seems like CuPY itself is the problem not the CUDA toolkit - needs more experimentation |
I can confirm that installing CuPy using Anaconda breaks GeNN on Linux as well, in that it claims that CUDA_PATH was not set when attempting to build a model, even though the path variable is set correctly. Calling
|
More specifically, it happens to be the case that activating a conda environment erases the $CUDA_PATH variable in the current shell session. This problem remains after calling |
On Windows at least, I have found that the anaconda environment copies |
When you install e.g. CuPy using Anaconda, it installs a special version of the CUDA runtime as an anaconda packages and sets
CUDA_PATH
to point to it. I guess this is cool because you can install a desired CUDA version in userland but bad becauseCUDA_PATH
looks likec:\Users\USER\Anaconda3
which cannot be parsed by this regex used by the MSBuild build system to extract the CUDA version:The result of this is then used to find the CUDA build extension:
We could find the CUDA version some other way and do the same thing:
However, doing this would still require that you have installed CUDA manually and configured it for the correct version of Visual Studio so, maybe it would be better to use an alternative mechanism:
extras\visual_studio_integration\
like standard CUDA installs CHECKFinally, what happens on Linux when you install CUDA like this?
The text was updated successfully, but these errors were encountered: