[code-reflection] RFR: [hat][opencl] Check errors macro added

Juan Fumero duke at openjdk.org
Fri Aug 1 13:21:05 UTC 2025


This PR adds a new macro for controlling OpenCL errors.

Notes: At the moment, the macro exits the VM if an error is encountered. In long run, what we should do is to return a state to the Java side. Thus the Java/HAT runtime can control what to do with the exception. 

The state can be common for all backends, at least at a high-level. Then each backend can have its own list of error status.

-------------

Commit messages:
 - [hat][opencl] Check errors macro added

Changes: https://git.openjdk.org/babylon/pull/510/files
  Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=510&range=00
  Stats: 282 lines in 8 files changed: 36 ins; 58 del; 188 mod
  Patch: https://git.openjdk.org/babylon/pull/510.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/510/head:pull/510

PR: https://git.openjdk.org/babylon/pull/510


More information about the babylon-dev mailing list