-
Notifications
You must be signed in to change notification settings - Fork 700
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
[SYCL][DeviceSanitizer] Checking out-of-bounds error on sycl::local_accessor #13503
Conversation
Hi @intel/compute-runtime-maintain, can you help to review? |
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.
UR LGTM
There are failing tests on this job. This is likely to hold up the UR merge pipeline so I may need to revert the UR change in oneapi-src/unified-runtime#1532
|
@AllanZyne please attempt to fix these test failures when you start today, if they are not fixed when I'm back at work tomorrow morning in Europe I'll go ahead with the revert of oneapi-src/unified-runtime#1532. |
@kbenzie It seems like the main tag of UR is not correct. |
🤦 thanks for fixing it |
@intel/llvm-gatekeepers please merge |
@intel/dpcpp-tools-reviewers approval is needed. |
I'm struggling to see where this is visible in the UI. Isn't there usually a sheild for a required reviewer teams? Edit: I see it now. I'll keep this in mind in future. |
@AlexeySachkov have your review comments been addressed? |
Thank @kbenzie for your help! |
@intel/llvm-gatekeepers could you please merge this PR? Thanks! |
UR: oneapi-src/unified-runtime#1532
To check sycl::local_accessor(aka, dynamic local memory), we need to extend a new argument in spir kernel, this is because:
I named this argument as "__asan_launch", which is a pointer pointed to "LaunchInfo" structure and allocated it in shared USM. To make this pointer can be used in spir_func w/o extending their argument, I created a global external local memory (external, so that it can be shared with other translation units, and its instance is defined in libdevice), and save the "__asan_launch" into this local memory immediately at the entry of kernel.
UR can't check the name of kernel arguments, so it can't know if the kernel has "__asan_launch". So I assume the "__asan_launch" is always there, and added a check to prevent DAE pass from removing it.