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

pycuda version 2022 not supported #42

Open
arielzn opened this issue Jun 22, 2023 · 1 comment
Open

pycuda version 2022 not supported #42

arielzn opened this issue Jun 22, 2023 · 1 comment

Comments

@arielzn
Copy link

arielzn commented Jun 22, 2023

If it is used pycuda with the latest version as of today (2022.2.2 ) we get this error

Traceback (most recent call last):                                                                                                                                                                                                                                                          
  File "/home/users/a/l/insta_env/bin/instagraal", line 5, in <module>                                                                                                                                                                                                              
    from instagraal.instagraal import main                                                                                                                                                                                                                                                  
  File "/home/users/a/l/insta_env/lib/python3.7/site-packages/instagraal/instagraal.py", line 72, in <module>                                                                                                                                                                       
    from instagraal.simu_single import simulation                                                                                                                                                                                                                                           
  File "/home/users/a/l/insta_env/lib/python3.7/site-packages/instagraal/simu_single.py", line 12, in <module>                                                                                                                                                                      
    from instagraal.cuda_lib_gl_single import sampler as sampler_lib                                                                                                                                                                                                                        
  File "/home/users/a/l/insta_env/lib/python3.7/site-packages/instagraal/cuda_lib_gl_single.py", line 11, in <module>                                                                                                                                                               
    from pycuda import gpuarray as ga                                                                                                                                                                                                                                                       
  File "/home/users/a/l/insta_env/lib/python3.7/site-packages/pycuda-2022.2.2-py3.7-linux-x86_64.egg/pycuda/gpuarray.py", line 2206                                                                                                                                                 
    def logical_and(x1, x2, /, out=None, *, allocator=None):                                                                                                                                                                                                                                
                            ^                                                                                                                                                                                                                                                               
SyntaxError: invalid syntax                                                                                                                                                                                                                                                                 

i tested with a version close to the instagraal 0.1.6 release and it worked fine

The README instructions should be updated to propose to pull pycuda like e.g.:

git clone --recurse-submodules  --depth 1 --branch v2019.1.2 https://github.com/inducer/pycuda.git
@ABignaud
Copy link
Member

Hi,
Yes it's not working with the latest version of pycuda, you have to use an older version. Thanks to report it to us. We will update the README instructions accordindly.
Amaury

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

2 participants