Package Details: python-cupy 13.2.0-1

Git Clone URL: https://aur.archlinux.org/python-cupy.git (read-only, click to copy)
Package Base: python-cupy
Description: NumPy-like API accelerated with CUDA
Upstream URL: https://cupy.dev
Licenses: MIT
Submitter: leomao
Maintainer: petronny (AutoUpdateBot)
Last Packager: petronny
Votes: 5
Popularity: 0.000000
First Submitted: 2019-01-03 11:58 (UTC)
Last Updated: 2024-07-19 13:53 (UTC)

Pinned Comments

petronny commented on 2023-01-29 09:52 (UTC)

Prebuilt binary can be found in the arch4edu repository.

Latest Comments

1 2 Next › Last »

redponike commented on 2024-06-23 19:56 (UTC) (edited on 2024-06-23 19:58 (UTC) by redponike)

Build is failing because cuDNN 8.8 or 8.9 is needed. Current cuDNN version is 9.1.1 in the official repository.

It might be noteworthy to mention that there are talks to drop cuDNN support altogether in the future. See issue 8215.

cupy_backends/cuda/libs/cudnn.cpp:2339:71: error: ‘cudnnRNNPaddingMode_t’ was not declared in this scope; did you mean ‘cudnnPaddingMode_t’?
 2339 | static CYTHON_INLINE PyObject* __Pyx_PyInt_From_cudnnRNNPaddingMode_t(cudnnRNNPaddingMode_t value);
      |                                                                       ^~~~~~~~~~~~~~~~~~~~~
      |                                                                       cudnnPaddingMode_t

TwentyoneThree commented on 2024-06-19 10:47 (UTC) (edited on 2024-06-19 10:48 (UTC) by TwentyoneThree)

Build on up-to-date Arch Linux system fails with:

[...]
g++ -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto build/temp.linux-x86_64-cpython-312/cupyx/cudnn.o -L/opt/cuda/lib64 -L/opt/cuda/lib -L/usr/lib -lcudnn -o build/lib.linux-x86_64-cpython-312/cupyx/cudnn.cpython-312-x86_64-linux-gnu.so -Wl,--disable-new-dtags,-rpath,/opt/cuda/lib64,-rpath,/opt/cuda/lib
g++ -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto build/temp.linux-x86_64-cpython-312/cupy/_core/dlpack.o -L/opt/cuda/lib64 -L/opt/cuda/lib -L/usr/lib -o build/lib.linux-x86_64-cpython-312/cupy/_core/dlpack.cpython-312-x86_64-linux-gnu.so -Wl,--disable-new-dtags,-rpath,/opt/cuda/lib64,-rpath,/opt/cuda/lib
error: command '/usr/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-cupy-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-cupy - exit status 4

petronny commented on 2023-01-29 09:52 (UTC)

Prebuilt binary can be found in the arch4edu repository.

Moebius14 commented on 2023-01-26 01:20 (UTC) (edited on 2023-05-26 22:10 (UTC) by Moebius14)

UPDATE: Nevermind, thanks to arch4edu repo posted by @petronny everything works perfect and flawless. Thanks, petronny! You helped a lot!

# OLD COMMENT
# Can't build, always get this error:
# error: cannot convert ‘const cusparseLtMatmulAlgSelection_t’ to ‘const cusparseLtMatmulPlan_t
# Tried the C++14 fix but did't help... :/

gleira commented on 2023-01-11 20:23 (UTC) (edited on 2023-01-11 20:24 (UTC) by gleira)

I can't build this package, I don't know if I'm doing something wrong.

==> Validating source files with md5sums...
v11.4.0.tar.gz ... FAILED
c3cceac115c072fb63df1836ff46d8c60d9eb304.tar.gz ... Passed
4a37de0be4639f222c6565ebd0654cb922b5180e.tar.gz ... Passed
==> ERROR: One or more files did not pass the validity check!

Regards

sl1pkn07 commented on 2021-09-01 16:00 (UTC)

oh. sorry. my fault.

greetings

leomao commented on 2021-09-01 12:06 (UTC)

@sl1pkn07 I think those are just warnings. Can you check if the package is built or not? I also have those messages, but my package is built properly.

leomao commented on 2020-11-17 13:23 (UTC)

Hi @reikdas, I cannot reproduce your issue. Maybe you can try to recompile the package first.

reikdas commented on 2020-11-17 13:08 (UTC)

I get a bunch of errors when trying to import cupy.

[reik@reik-msi ~]$ python
Python 3.8.6 (default, Sep 30 2020, 04:00:38) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cupy
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/cupy/__init__.py", line 20, in <module>
    from cupy import core  # NOQA
  File "/usr/lib/python3.8/site-packages/cupy/core/__init__.py", line 1, in <module>
    from cupy.core import core  # NOQA
  File "cupy/core/core.pyx", line 1, in init cupy.core.core
  File "/usr/lib/python3.8/site-packages/cupy/cuda/__init__.py", line 5, in <module>
    from cupy.cuda import compiler  # NOQA
  File "/usr/lib/python3.8/site-packages/cupy/cuda/compiler.py", line 10, in <module>
    from cupy.cuda import device
  File "cupy/cuda/device.pyx", line 9, in init cupy.cuda.device
ImportError: libcusolver.so.11: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/cupy/__init__.py", line 41, in <module>
    raise ImportError(_msg) from e
ImportError: 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: libcusolver.so.11: cannot open shared object file: No such file or directory
>>> quit()

I have CUDA 11.