-
Notifications
You must be signed in to change notification settings - Fork 242
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
interop demos both segfault #217
Comments
Could you provide tracebacks of the segfaults? |
Closing for lack of activity and clear reproducible bug. Reopen if this is still an issue. |
Seems like this is the same issue I am hitting, running Arch Linux 4.16.8 with a GTX 970. gdb traceback:
clinfo output:
|
Okay, the workaround from #177 is not helping me. Moving the platform = cl.get_platforms()[0]
def initialize():
from pyopencl.tools import get_gl_sharing_context_properties
import sys
if sys.platform == "darwin":
ctx = cl.Context(properties=get_gl_sharing_context_properties(),
devices=[])
else:
# Some OSs prefer clCreateContextFromType, some prefer
# clCreateContext. Try both.
try:
ctx = cl.Context(properties=[
(cl.context_properties.PLATFORM, platform)]
+ get_gl_sharing_context_properties())
except:
ctx = cl.Context(properties=[
(cl.context_properties.PLATFORM, platform)]
+ get_gl_sharing_context_properties(),
devices = [platform.get_devices()[0]]) yields the same result:
Additionally moving the get_device() doesn't help either and the segfault happens no matter which of the two constructor versions I call (with or without |
I made some progress by logging
|
My clinfo output: https://pastebin.com/sBhe9ceC
I am noticing that in clinfo, I have way more extensions than show up in pyopencl:
In [15]: p
Out[15]: <pyopencl.Platform 'AMD Accelerated Parallel Processing' at 0x7f1d7bb18510>
In [16]: p.extensions
Out[16]: 'cl_khr_icd cl_amd_event_callback cl_amd_offline_devices '
The text was updated successfully, but these errors were encountered: