-
-
Notifications
You must be signed in to change notification settings - Fork 884
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
Cupy version installation #4279
Comments
This issue is originated from rapidsai/cusignal#284. @leyojoseph in the initial discussion we thought you're on CUDA 11.0, but based on your latest report here and there it seems you're actually on 11.1? Could you confirm which version you have? For CUDA 11.1, you should do For building from source ( |
Seconding this! The CUDA Toolkit version and Cupy wheel you request and install must match exactly. When I tested cusignal Windows install, getting this right was the last stumbling block. There are a lot of ways to do it wrong, and |
Thanks .. As shown below, i have Nvidia tool kit 11.1 This is what I am getting with pip install cupy -cuda111 (base) C:\Windows\system32>pip install cupy-cuda111 |
If you’re using a fresh conda env, you should be able to call Your most recent error looks like a permissions error. If you’re using the “Anaconda prompt” command window, try closing it, right click > run as Administrator, and trying again. |
Thanks a lot... Could you please explain little bit on what you mean by "Fresh Conda env"...also hwo to do this to get the fresh conda environment. Appreciate your help |
should do it. https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html |
One more question on this please.. |
Let’s confirm first that you have Cupy installed correctly so this issue can be closed. Cupy docs should have some examples you can follow to test this without having cusignal installed. |
Hello, (gpu) C:\Windows\System32>conda list packages in environment at C:\ProgramData\Anaconda3\envs\gpu:Name Version Build Channelalabaster 0.7.12 py_0 Tried running the below example program==> start = 0 Generate Data on CPUcx = np.linspace(start, stop, num_samps, endpoint=False) %%timegf = cusignal.resample_poly(cp.asarray(cy), resample_up, resample_down, window=('kaiser', 0.5)) Getting below error==> File "C:\dpd\Python\DLA_Split band\cusig_example.py", line 16, in File "C:\ProgramData\Anaconda3\envs\gpu\lib\site-packages\cusignal-0.17.0a0+29.ga3e5293-py3.8.egg\cusignal\filtering\resample.py", line 422, in resample_poly File "C:\ProgramData\Anaconda3\envs\gpu\lib\site-packages\cusignal-0.17.0a0+29.ga3e5293-py3.8.egg\cusignal\filtering\resample.py", line 521, in upfirdn File "C:\ProgramData\Anaconda3\envs\gpu\lib\site-packages\cusignal-0.17.0a0+29.ga3e5293-py3.8.egg\cusignal\filtering_upfirdn_cuda.py", line 214, in apply_filter File "C:\ProgramData\Anaconda3\envs\gpu\lib\site-packages\cusignal-0.17.0a0+29.ga3e5293-py3.8.egg\cusignal\filtering_upfirdn_cuda.py", line 137, in _populate_kernel_cache File "C:\ProgramData\Anaconda3\envs\gpu\lib\site-packages\cusignal-0.17.0a0+29.ga3e5293-py3.8.egg\cusignal\utils\helper_tools.py", line 57, in _get_function File "cupy\core\raw.pyx", line 464, in cupy.core.raw.RawModule.get_function File "cupy\core\raw.pyx", line 89, in cupy.core.raw.RawKernel.kernel.get File "cupy\core\raw.pyx", line 106, in cupy.core.raw.RawKernel._kernel File "cupy_util.pyx", line 49, in cupy._util.memoize.decorator.ret File "cupy\core\raw.pyx", line 533, in cupy.core.raw._get_raw_module File "cupy\cuda\function.pyx", line 220, in cupy.cuda.function.Module.load_file File "cupy_backends\cuda\api\driver.pyx", line 237, in cupy_backends.cuda.api.driver.moduleLoad File "cupy_backends\cuda\api\driver.pyx", line 124, in cupy_backends.cuda.api.driver.check_status CUDADriverError: CUDA_ERROR_FILE_NOT_FOUND: file not found Please help me figure out my mistake |
Hi @leyojoseph, looks like your cupy is working? Could you verify a pure CuPy code like this (based on yours with a small modification) can run without error? import cupy as cp
start = 0
stop = 10
num_samps = int(1e8)
cx = cp.linspace(start, stop, num_samps, endpoint=False)
cy = cp.cos(-cx**2/6.0)
print(cy) If so you should close this issue, and continue the discussion on cuSignal in rapidsai/cusignal#284 like @evanmayer did. |
Hello, |
Hello,
I have Nvidia tesla K40 and nvidia cuda toolkit 11.1 installed on windows 10 HP Z440 machine.
My pip list command shows ==>
(base) PS C:> pip list
Package Version
alabaster 0.7.12
anaconda-client 1.7.2
anaconda-navigator 1.9.12
anaconda-project 0.8.3
argh 0.26.2
asn1crypto 1.3.0
astroid 2.4.2
astropy 4.0.1.post1
atomicwrites 1.4.0
attrs 19.3.0
autopep8 1.5.3
Babel 2.8.0
backcall 0.2.0
backports.functools-lru-cache 1.6.1
backports.shutil-get-terminal-size 1.0.0
backports.tempfile 1.0
backports.weakref 1.0.post1
bcrypt 3.1.7
beautifulsoup4 4.9.1
bitarray 1.4.0
bkcharts 0.2
bleach 3.1.5
bokeh 2.1.1
boto 2.49.0
Bottleneck 1.3.2
brotlipy 0.7.0
certifi 2020.6.20
cffi 1.14.0
chardet 3.0.4
click 7.1.2
cloudpickle 1.5.0
clyent 1.2.2
colorama 0.4.3
comtypes 1.1.7
conda 4.8.3
conda-build 3.18.11
conda-package-handling 1.7.0
conda-verify 3.4.2
contextlib2 0.6.0.post1
cryptography 2.9.2
cupy-cuda110 8.1.0
cusignal 0.17.0a0+29.ga3e5293
cycler 0.10.0
When I run cupy related code, getting below message ==>
CuPy is not correctly installed.
If you are using wheel distribution (cupy-cudaXX), make sure that the version of CuPy you installed matches with the version of CUDA on your host.
Also, confirm that only one CuPy package is installed:
$ pip freeze
If you are building CuPy from source, please check your environment, uninstall CuPy and reinstall it with:
$ pip install cupy --no-cache-dir -vvvv
Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html
original error: cannot import name syncdetect
When trying to install cupy getting below message ==>
(base) PS C:> pip install cupy
Collecting cupy
Using cached cupy-8.1.0.tar.gz (5.9 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ljoseph\AppData\Local\Temp\pip-install-7p8mxhug\cupy\setup.py'"'"'; file='"'"'C:\Users\ljoseph\AppData\Local\Temp\pip-install-7p8mxhug\cupy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ljoseph\AppData\Local\Temp\pip-pip-egg-info-ottojt2h'
cwd: C:\Users\ljoseph\AppData\Local\Temp\pip-install-7p8mxhug\cupy
Complete output (43 lines):
Options: {'package_name': 'cupy', 'long_description': None, 'wheel_libs': [], 'wheel_includes': [], 'wheel_metadata': None, 'no_rpath': False, 'profile': False, 'linetrace': False, 'annotate': False, 'no_cuda': False, 'use_hip': False}
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(base) PS C:>
How to get cupy version 8.0 installed on my PC
The text was updated successfully, but these errors were encountered: