-
Notifications
You must be signed in to change notification settings - Fork 93
[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
base: SYCLomatic
Are you sure you want to change the base?
Conversation
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
…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>
There was a problem hiding this 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>
|
||
/// Extracts native Level Zero context handle from SYCL context. | ||
/// \param [in] context SYCL context object | ||
/// \returns Native Level Zero context handle |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
No description provided.