Skip to content

[DeviceMSAN] Use device usm to allocate LaunchInfo #17948

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 4 commits into
base: sycl
Choose a base branch
from

Conversation

AllanZyne
Copy link
Contributor

@AllanZyne AllanZyne commented Apr 10, 2025

Fix cts segment fault on accessing shared usm

@AllanZyne AllanZyne requested review from a team as code owners April 10, 2025 06:57
@@ -339,6 +339,7 @@ void __asan_exit(ErrorType error_type) {
__devicelib_exit();
break;
default:
break;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix compile warning

@AllanZyne AllanZyne changed the title [DeviceMSAN] Use device usm for launch info [DeviceMSAN] Use device usm to allocate LaunchInfo Apr 10, 2025
@AllanZyne
Copy link
Contributor Author

@intel/unified-runtime-reviewers, please review. Thanks!

Result = getContext()->urDdiTable.USM.pfnFree(Context, (void *)Data);
MsanRuntimeDataWrapper::~MsanRuntimeDataWrapper() {
if (Host.CleanShadow) {
auto Result =
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we still need the [[maybe_unused]] for this and the declaration below, assert doesn't always count as using a variable

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.

3 participants