-
Notifications
You must be signed in to change notification settings - Fork 794
[SYCL][UR][L0 v2] Fix urMemBufferCreateWithNativeHandle #17698
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
Conversation
The implementation incorrectly assumed that hDevice is always set for memory type other than host which resulted in nullptr dereference in ur_discrete_buffer_handle_t ctor. The assumption is not true for shared allocations. Implement a separate handle type to handle shared allocations: the implementation will just use the allocation directly.
unified-runtime/test/adapters/level_zero/urMemBufferCreateWithNativeHandleShared.cpp
Show resolved
Hide resolved
|
@intel/llvm-gatekeepers this is ready to be merged |
|
@igchor @npmiller @pbalcer I don't think it was this PR but any ideas what could cause this postcommit windows build fail? https://github.com/intel/llvm/actions/runs/14175023208/job/39707709728 |
|
@sarnex hm, this looks like a problem with UMF, but the UMF version was bumped a while ago, and there were no failures on merge. @lukaszstolarczuk @PatKamin have you seen this error before? |
|
@sarnex looking at the logs, I also see some failures during level-zero compilation. Also, there are some CMake warning that weren't present before: Perhaps there was some infrastructure update that caused this? |
|
@igchor Can you send me a log from where it passed? |
|
@sarnex I was looking at this job, just after UMF bump merge: https://github.com/intel/llvm/actions/runs/13990348416/job/39172707168 |
|
So I installed CUDA/HIP/OCL CPU on this runner but I can't imagine that's related and the logs don't seem to suggest so, I see so maybe the git repo cache is corrupted, let me try deleting it |
|
@sarnex Actually, this seems to be the last passing job: https://github.com/intel/llvm/actions/runs/14162041878/job/39668990919 |
|
that one ran on a runner that i didn't touch, so maybe it is just this runner, let me try some stuff |
|
ok i see the bad case is using upstream cmake and the good is using cmake from msvc, let me try removing the upstream one |
|
ok looks like the problem was a perl version bump i did on the runner, weird. anyway seems fixed now and not related to any actual code, sorry for the trouble |
The implementation incorrectly assumed that hDevice is always set for memory type other than host which resulted in nullptr dereference in ur_discrete_buffer_handle_t ctor. The assumption is not true for shared allocations. Implement a separate handle type to handle shared allocations: the implementation will just use the allocation directly.
The implementation incorrectly assumed that hDevice is always set for memory type other than host which resulted in nullptr dereference in ur_discrete_buffer_handle_t ctor.
The assumption is not true for shared allocations.
Implement a separate handle type to handle shared allocations: the implementation will just use the allocation directly.