Skip to content

[test] sanitizer test - #65

Closed
bratpiorka wants to merge 3 commits into
oneapi-src:mainfrom
bratpiorka:rrudnick_sanitizer_test
Closed

bratpiorka wants to merge 3 commits into
oneapi-src:mainfrom
bratpiorka:rrudnick_sanitizer_test

Conversation

@bratpiorka

Copy link
Copy Markdown
Contributor

sanitizer test

bratpiorka and others added 3 commits November 4, 2026 10:28
A UsmBox could be freed while a copy or fill that uses it was still
running, which breaks the precondition of sycl::free that no enqueued
or in-progress command uses the memory. Safe code could do this by
dropping an allocation before its zero fill finished, or by dropping
the source or destination of a copy before the copy finished.

Have each UsmBox record the events of the copies and fills that use
it, and wait for them before freeing the memory. If waiting fails, the
memory is leaked instead, since a command may still be using it.

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
@bratpiorka bratpiorka closed this Nov 4, 2026
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.

2 participants