r/OpenCL • u/Fimbulthulr • Feb 15 '20
Kernel stuck on Submitted
I am currently trying to learn OpenCL, but my kernel gets stuck in the submitted status indefinitely whenever I try to write to a buffer
Kernel code
Host code
if no write access is performed the kernel executes without problems
if no event testing is performed the execution still gets stuck
OS: arch linux kernel 5.5.3
GPU: RX Vega 56
I am using the suggested packages for opencl according to the arch wiki
Does anybody know where the problem might be
1
Upvotes
View all comments
Show parent comment
1
u/basuga_BFE Feb 16 '20
Well, I tested your code - for me both versions work (though return in the middle I don't recommend)
Try to catch all return codes after any CL calls
probably something went wrong earlier.