microsoft / microsoft/OpenCLOn12

clGetDeviceInfo needs a catch for device creation failure

Open
#14 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
130
Forks
19
Avg merge
11d 23h
Merged PRs (30d)
2

Description

The CacheCaps method may need to temporarily create a device, which can fail. When querying for any of the caps that are filled out by CacheCaps, we could throw, so clGetDeviceInfo should handle this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing clGetDeviceInfo and the CacheCaps method in the OpenCLOn12 source. Identify which capability queries can trigger temporary device creation and how failures currently propagate. Done means clGetDeviceInfo handles device-creation failure without exposing an uncaught exception; verify with the relevant existing tests or API checks.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.