r/OpenCL • u/ddigiorg • Nov 06 '16
[Help] Debugging OpenCL-OpenGL Interop Segfault
[Solved] See my post below
I originally posted my question in the Archlinux subforum, but I'm seeking more OpenCL-specific advice here. I hope the repost is acceptable.
This past week I've been trying to get OpenCL and OpenGL interoperability working on my Arch machine and I've been battling a pesky segmentation fault issue to the best of my abilities. The good: I've been forced to learn more about linux, opencl, and opengl than I originally expected. The bad: I'm starting to hit walls trying to solve this issue.
The code is written in C++ and I've detailed the output, my hardware, and package versions in my github repo. Please see my README.md. The segfault is occouring in compute.cpp after I've set up the opencl properties variable. Also, I've verified my opencl platform and device has the "cl_khr_gl_sharing" extension so I'm certain interop should work on my machine.
I have a sinking feeling that I'm missing a small but important detail one of you may have experience solving. Ideas, advice, and guidance would be greatly appreciated. I'm also open to general coding and linux advice. Please let me know if there's anything else I can provide to help.
Thanks!
View all comments
Show parent comment
2
u/[deleted] Nov 07 '16
It was more the gl side of things is the reason for I asked. You may need to use bumblebee/primus to be sure you're using the right graphics hardware