inducer / pycuda

CUDA integration for Python, plus shiny features
http://mathema.tician.de/software/pycuda
Other
1.85k stars 288 forks source link

add pycuda.gl in PiPy distribution #470

Closed ccarmatic closed 1 week ago

ccarmatic commented 1 week ago

Is your feature request related to a problem? Please describe. I have a project which uses both Cuda and OpenGL , and I need pycuda.gl functionality

Describe the solution you'd like installing PyCuda via pip should enable me to use pycuda.gl

Describe alternatives you've considered I tried to build PyCuda with CUDA_ENABLE_GL = True in siteconf.py from the zip file downloaded from Github ,but ultimately ran into the following:

    import pycuda.autoinit
  File "C:\Users\fdasfasdfasd\AppData\Local\Programs\Python\Python310\lib\site-packages\pycuda-2024.1.2-py3.10-win-amd64.egg\pycuda\autoinit.py", line 7, in <module>
    from pycuda.tools import make_default_context  # noqa: E402
  File "C:\Users\fdasfasdfasd\AppData\Local\Programs\Python\Python310\lib\site-packages\pycuda-2024.1.2-py3.10-win-amd64.egg\pycuda\tools.py", line 33, in <module>
    from pycuda.compyte.dtypes import (  # noqa: F401
ModuleNotFoundError: No module named 'pycuda.compyte'

Additional context Maybe I made a mistake when building Boost or PyCuda somewhere along the way?

inducer commented 1 week ago

I think you must have gotten your PyCUDA code somewhere other than the package index (maybe downloaded a ZIP from Github)? The tarball on the package index contains compyte, the package you got does not.