Skip to content

Conversation

@zhaomaosu
Copy link
Contributor

Since CPU/GPU device both support USM indirect access, we need to poison shadow of whole allocated memory in the device instead of only one context.

Since CPU/GPU device both support USM indirect access, we need to poison
shadow of whole allocated memory in the device instead of only one
context.
@zhaomaosu zhaomaosu requested a review from a team as a code owner November 11, 2025 06:55
@zhaomaosu zhaomaosu requested review from a team and jinge90 November 11, 2025 06:56
@sarnex
Copy link
Contributor

sarnex commented Nov 11, 2025

I think this PR is causing UR hangs, please make sure it's fixed before running CI again, thanks.

Copy link
Contributor

@pbalcer pbalcer left a comment

Choose a reason for hiding this comment

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

lgtm, just two small comments.

}
};

struct USMLaunchInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to address this now, but it might be useful to unify this with the tsan launch info.

}
// UR doesn't allow GlobalWorkOffset is null, we need to construct a zero
// value array if user doesn't specify its value.
if (GlobalWorkOffset) {
Copy link
Contributor

Choose a reason for hiding this comment

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

global work offset can be null, see:

/// [in][optional] pointer to an array of workDim unsigned values that
/// specify the offset used to calculate the global ID of a work-item
const size_t *pGlobalWorkOffset,

If something is segfaulting when null is passed to launch kernel, please file a bug or let me know.

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