You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch makes 2 changes: it removes the outdated usage of device
selector (in SYCL 2020 it always picks from all available devices
instead of being limited to the context passed along with it) and adds a
workaround for the problem described below.
There is an issue with extension function pointer caching in OpenCL
plugin: each extension function call helper keeps a pi_context-to-fptr
map cache, however, these maps aren't cleaned up on context release.
This can lead to the following situation:
- Context A is created
- An extension function is called in context A
- Context A is destroyed
- A new context B is created, which happens to have the same pi_context
handle
- The cached function is called for context B
If these two contexts have different platforms (like in get_backend
test), this will lead to an error. This patch removes the use of USM
functions from the test to circumvent this issue.
0 commit comments