-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Switch to using blocking USM free for OpenCL GPU (#4928)
Whenever a kernel is enqueued on GPU, the GPU driver records the state of all USM pointers that might be used in an indirect fashion. Because of this, these pointers cannot be freed until the execution of the kernel is finished. This change addresses this problem for OpenCL by using a blocking version of free, while Level Zero already handles this by deferring USM release. The change is temporarily limited to OpenCL GPU until a bug in OpenCL CPU runtime is resolved.
- Loading branch information
1 parent
db7ff53
commit c4a7290
Showing
2 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters