oneapi-src / oneapi-src/unified-runtime

Add RAII handle wrappers to aid UR users

Open
#1,334 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
57
Forks
120
Avg merge
1d 14h
Merged PRs (30d)
1

Description

There are at least 3 places where RAII wrappers for UR handles have been either implemented or requested recently:

Given this is a common pattern in C++ code, and because it would be easy to generate, we should provide RAII wrappers as a public header that can be reused rather than implemented in multiple places.

Contributor guide

No contributing guide indexed for this repository

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 reading the existing RAII wrappers in test/conformance/testing/include/uur/raii.h and compare the implementations and requests linked in pull requests 1286 and 12589. Define a reusable public header that covers the UR handle patterns described in those references and avoids separate implementations in each user. Done means UR users can include the public wrappers instead of recreating them.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.