KhronosGroup / KhronosGroup/OpenCL-CLHPP

Add error code and description to what() string of exceptions

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
425
Forks
133
Avg merge
3h 30m
Merged PRs (30d)
1

Description

When building with `CL_HPP_ENABLE_EXCEPTIONS` enabled, exceptions are thrown when OpenCL calls fail. The string returned by the `what()` method of the exceptions tends to only contain the entrypoint name. Adding the error code in numeric and text form would be really useful.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the exception classes and their what() implementations in OpenCL-CLHPP, then trace how failures are created when CL_HPP_ENABLE_EXCEPTIONS is enabled. Done means what() includes the error code in both numeric and textual form, alongside the entrypoint name, with behavior checked for a representative failed OpenCL call.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
hpc
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.