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

[OpenCL] crash at import ... #3923

Open
2 tasks done
kif opened this issue Aug 22, 2023 · 0 comments
Open
2 tasks done

[OpenCL] crash at import ... #3923

kif opened this issue Aug 22, 2023 · 0 comments

Comments

@kif
Copy link
Member

kif commented Aug 22, 2023

I stumbled on this bug when setting up an environment for debugging/profiling OpenCL code (Portable CL + Cuda JIT compilation to profile on nvidia GPU).
The error message printed before the program abortion is:

Aborted

After inspection, it turns out it is the probing for atomic operation on devices in 'silx.opencl.atomic' which causes the crash.

Deeper inspection with gdb shows that PoCL explicitely asked for the termination of the program by calling pocl_cuda_abort_on_error. My problem is that we are compiling some code to actually validate if those atomic operation at available or not. Here, the PTX code is apparently not useable. silx expected an exception, not a brutal program termination !

What needs to be done:

  • Warn the developers of PyOpenCL (probably nothing they can do on their side) and PortableCL.
  • Deactivate the probing of devices when driver=="ProtableCL" and devicetype=="GPU" since it crashes the program without being able to recover it at the Python level.
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

1 participant