Skip to content

DPC++ daily 2022-11-02

Pre-release
Pre-release
Compare
Choose a tag to compare
@bb-sycl bb-sycl released this 02 Nov 16:40
· 120531 commits to sycl since this release
19e9941
[SYCL] Improve mock PI plugin (#7198)

The patch adds more logic to default redefinitions of PI APIs:

    1. Allocate, refcount and deallocate various handles
    2. Handle sub-buffer creation

Also the patch adds support for adding PI functions to be
called in addition (before or after) to the original function.
This allows intercepting PI API calls for introspection while
still allowing original function take care of handles. Or add
some post processing of the returned values.