Skip to content

[SYCLomaitc] Add the IPC memory APIs migration to level zero APIs. #2694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: SYCLomatic
Choose a base branch
from

Conversation

ShengchenJ
Copy link
Contributor

No description provided.

Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
@ShengchenJ ShengchenJ requested a review from a team as a code owner March 7, 2025 03:33
tomflinda pushed a commit to tomflinda/SYCLomatic that referenced this pull request Mar 10, 2025
…bool-refactoring

Revert "[L0] Refactoring of boolean event parameters"
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
@ShengchenJ ShengchenJ marked this pull request as draft April 22, 2025 00:58
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
@ShengchenJ ShengchenJ changed the title [SYCLomaitc][NFC] Remove the IPC related API supported tags. [SYCLomaitc]Add the IPC memory APIs migration to level zero APIs. Apr 22, 2025
@ShengchenJ ShengchenJ marked this pull request as ready for review April 22, 2025 07:39
@ShengchenJ ShengchenJ changed the title [SYCLomaitc]Add the IPC memory APIs migration to level zero APIs. [SYCLomaitc] Add the IPC memory APIs migration to level zero APIs. Apr 22, 2025
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Copy link
Contributor

@tomflinda tomflinda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>

/// Extracts native Level Zero context handle from SYCL context.
/// \param [in] context SYCL context object
/// \returns Native Level Zero context handle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's simplify the helper function by removing unnecessary ones.

/// \param [in] phipc Source IPC handle structure
/// \returns Local process file descriptor
template <class T> int get_cur_pid(T phipc) {
int pidfd = syscall(SYS_pidfd_open, phipc.pid, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please call pidfd_open directly?

/// Cross-process file descriptor translator.
/// \param [in] phipc Source IPC handle structure
/// \returns Local process file descriptor
template <class T> int get_cur_pid(T phipc) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the value returned is fd, not pid.

Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants