oneapi-src / oneapi-src/unified-memory-framework

Mapping to host

Open
#1,004 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
98
Forks
48
Avg merge
3d 20h
Merged PRs (30d)
6

Description

Rationale

Today, the MPI library for Level Zero and CUDA can map the device memory to the host. It is done for performance reasons: In case of short messages mapping to host and calling host memcpy works faster than copying via L0 APIs.

Description

TBD

API Changes

Need to decided on the right API

Implementation details

In case of Level Zero the Level Zero IPC API can be used. Today MPI extracts file descriptor from the IPC handle and use mmap function to map memory to the host.
In case of CUDA the gdrcopy library is used.

Meta

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 reviewing the existing MPI paths for Level Zero and CUDA device-memory transfers, then compare the Level Zero IPC plus mmap approach with the gdrcopy integration described here. The API is still undecided, so define the supported mapping interface and its scope before implementation. Done requires an agreed API and working host mapping for both backends, with performance behavior validated for short messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.