Package Details: python-cupy 13.3.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: AutoUpdateBot
Votes: 5
Popularity: 0.000000
First Submitted: 2019-01-03 11:58 (UTC)
Last Updated: 2024-08-22 08:18 (UTC)

Pinned Comments

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

Prebuilt binary can be found in the arch4edu repository.

Latest Comments

« First ‹ Previous 1 2

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.

leomao commented on 2020-10-20 11:03 (UTC)

Hi @sl1pkn07, thanks for pointing out this. I have updated the PKGBUILD.

sl1pkn07 commented on 2020-10-17 16:47 (UTC) (edited on 2020-10-17 17:31 (UTC) by sl1pkn07)

seems need pass -std=c++14 to compiler. builds sput tons of warnings about it

aviso: CUB requires C++14. Please pass -std=c++14 to your compiler. Define CUB_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.
  129 |   CUB_COMPILER_DEPRECATION(C++14, pass -std=c++14 to your compiler);

greetings

edit: sed 's|++11|++14|g' -i cupy_setup_build.py

https://github.com/cupy/cupy/blob/de71f558c053f81482308f8c5fbb989072179851/cupy_setup_build.py#L911

petronny commented on 2019-09-03 08:01 (UTC)

copying cupy/core/include/cupy/_cuda/cuda-10.1/cuda_fp16.hpp -> build/lib.linux-x86_64-3.7/cupy/core/include/cupy/_cuda/cuda-10.1
copying cupy/cuda/cupy_thrust.cu -> build/lib.linux-x86_64-3.7/cupy/cuda
running build_ext
Traceback (most recent call last):
  File "setup.py", line 180, in <module>
    'sdist': sdist},
  File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/build/python-cupy/src/cupy-6.3.0/cupy_setup_build.py", line 822, in run
    check_extensions(self.extensions)
  File "/build/python-cupy/src/cupy-6.3.0/cupy_setup_build.py", line 620, in check_extensions
    '''.format(f, required_cython_version))
RuntimeError: Missing file: cupy/core/_dtype.cpp
Please install Cython 0.28.0 or later. Please also check the version of Cython.
See https://docs-cupy.chainer.org/en/stable/install.html for details.

Please add cython to makedepends.

leomao commented on 2019-04-09 04:44 (UTC) (edited on 2019-04-09 04:44 (UTC) by leomao)

It seems that cupy is not compatible with the combination cuda 10.1/gcc 8.2.1 currently...

related issue and pull request:

https://github.com/cupy/cupy/issues/2070

https://github.com/cupy/cupy/pull/2117

huyz commented on 2019-04-09 04:39 (UTC) (edited on 2019-04-09 04:40 (UTC) by huyz)

Got this error:

/opt/cuda/bin/nvcc -D_GLIBCXX_USE_CXX11_ABI=0 -D_FORCE_INLINES=1 -I/opt/cuda/include -I/usr/include/python3.7m -c cupy/cuda/cupy_thrust.cu -o build/temp.linux-x86_64-3.7/cupy/cuda/cupy_thrust.o --generate-code=arch=compute_30,code=compute_30 --generate-code=arch=compute_50,code=compute_50 --generate-code=arch=compute_60,code=sm_60 --generate-code=arch=compute_61,code=sm_61 --generate-code=arch=compute_70,code=sm_70 --generate-code=arch=compute_70,code=compute_70 -O2 --compiler-options="-fPIC"
/usr/include/c++/8.2.1/bits/basic_string.tcc: In instantiation of 'static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]':
/usr/include/c++/8.2.1/bits/basic_string.tcc:578:28:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/usr/include/c++/8.2.1/bits/basic_string.h:5052:20:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/usr/include/c++/8.2.1/bits/basic_string.h:5073:24:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/usr/include/c++/8.2.1/bits/basic_string.tcc:656:134:   required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
/usr/include/c++/8.2.1/bits/basic_string.h:6725:95:   required from here
/usr/include/c++/8.2.1/bits/basic_string.tcc:1067:1: error: cannot call member function 'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]' without object
    __p->_M_set_sharable();
^     ~~~~~~~~~
/usr/include/c++/8.2.1/bits/basic_string.tcc: In instantiation of 'static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]':
/usr/include/c++/8.2.1/bits/basic_string.tcc:578:28:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
/usr/include/c++/8.2.1/bits/basic_string.h:5052:20:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
/usr/include/c++/8.2.1/bits/basic_string.h:5073:24:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
/usr/include/c++/8.2.1/bits/basic_string.tcc:656:134:   required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
/usr/include/c++/8.2.1/bits/basic_string.h:6730:95:   required from here
/usr/include/c++/8.2.1/bits/basic_string.tcc:1067:1: error: cannot call member function 'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]' without object
error: command '/opt/cuda/bin/nvcc' failed with exit status 1
==> ERROR: A failure occurred in build().
    Aborting...