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

Installation step 7 for GPU support #7

Open
tkazi opened this issue Jun 22, 2020 · 0 comments
Open

Installation step 7 for GPU support #7

tkazi opened this issue Jun 22, 2020 · 0 comments

Comments

@tkazi
Copy link

tkazi commented Jun 22, 2020

when i run this command: python setup.py install (inside libgpuarray), i get the following cython error:

[1/2] Cythonizing pygpu/collectives.pyx /usr/local/lib/python3.6/site-packages/Cython-3.0a5-py3.6-linux-x86_64.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/datadrivenbirding/BirdNET/libgpuarray/pygpu/collectives.pxd tree = Parsing.p_module(s, pxd, full_module_name) Error compiling Cython file: try: if is_c_cont: # Smallest in index dimension has the largest stride if src.ga.dimensions[0] % gpucount == 0: chosen_dim_size = src.ga.dimensions[0] / gpucount ^ pygpu/collectives.pyx:394:55: Cannot assign type 'double' to 'size_t' Error compiling Cython file: else: raise TypeError, "Source GpuArray cannot be split in %d c-contiguous arrays" % (gpucount) else: # Largest in index dimension has the largest stride if src.ga.dimensions[nd - 1] % gpucount == 0: chosen_dim_size = src.ga.dimensions[nd - 1] / gpucount ^ pygpu/collectives.pyx:408:60: Cannot assign type 'double' to 'size_t' Traceback (most recent call last): File "setup.py", line 158, in <module> ext_modules=cythonize(exts), File "/usr/local/lib/python3.6/site-packages/Cython-3.0a5-py3.6-linux-x86_64.egg/Cython/Build/Dependencies.py", line 1110, in cythonize cythonize_one(*args) File "/usr/local/lib/python3.6/site-packages/Cython-3.0a5-py3.6-linux-x86_64.egg/Cython/Build/Dependencies.py", line 1277, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: pygpu/collectives.pyx

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

No branches or pull requests

1 participant