-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Fixes for subbuffer reinterpretation (#626)
This patch fixes several problems: 1) There was no proper dependency for AllocaSubBuffer. When accessor to subbuffer was instantiated and was passed to kernel created with OpenCL interoperability, correct cl_mem object wasn't found which forced kernel argument to be nullptr. 2) Memory range wasn't passed in buffer constructor in `reinterpret` function. This led to unexpected behavior after data transmission from device to host. We can pass the same memory range only in cases when reinterpret dimension equals to source dimension. For other cases `reinterpret` didn't change its behaviour. Signed-off-by: Ivan Karachun <ivan.karachun@intel.com>
- Loading branch information
Showing
4 changed files
with
87 additions
and
9 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
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