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

Problems using pyopencl #27

Closed
micaloping opened this issue Oct 8, 2024 · 2 comments
Closed

Problems using pyopencl #27

micaloping opened this issue Oct 8, 2024 · 2 comments

Comments

@micaloping
Copy link

micaloping commented Oct 8, 2024

Hi everyone.
It's my first time with pyxopto and opencl, and for several days I have been having a problem using them, I have only tried the basic.py example. I have tried everything, installing the libraries, installing Intel® oneAPI Base Toolkit, installing the drivers from Intel web, etc and nothing changes.

I've also tried on Manjaro Linux, installing all the necessary libraries from AUR, but the same thing keeps happening to me.

My card is Intel Iris Xe and the error for example in windows is the following:

{70135378-B774-4FDD-9E09-3ACF96F55E44}

_`  File "C:\Users\Asus\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyxopto-0.2.3-py3.12.egg\xopto\mcbase\mcworker.py", line 198, in __init__
    self._cl_queue = cl.CommandQueue(
                     ^^^^^^^^^^^^^^^^
TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None

Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }`_

If anyone have some idea of what I can do, is welcome :)
Thanks a lot for your help!

@micaloping
Copy link
Author

I found the solution in Issue #24 And now it works!
Thanks!

@Randall531
Copy link

Hi, I have tried the same solution from your link by changing to cl_cq_properties = 0. However, i still get the same error,

TypeError: init(): incompatible function arguments. The following argument types are supported:
1. init(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None

Invoked with types: pyopencl._cl.CommandQueue, pyopencl.cl.Context, kwargs = { properties: NoneType }`

Did you do any additional steps?

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