oneapi-src / oneapi-src/unified-runtime

Add `ur_device_handle_t` parameter to `urEnqueueUSMMemAdvise`

Open
#336 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

ur_mem_advice_t specifies: UR_MEM_ADVICE_SET_PREFERRED_LOCATION and UR_MEM_ADVICE_CLEAR_PREFERRED_LOCATION but urEnqueueUSMMemAdvise does not accept any device handle which makes it impossible to specify the location.

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 at the urEnqueueUSMMemAdvise API and trace its declaration and implementation to understand how memory advice is handled. Verify how the device handle should select the preferred location, then update or add coverage so both SET_PREFERRED_LOCATION and CLEAR_PREFERRED_LOCATION can specify a device.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Bug
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.