@@ -250,8 +250,9 @@ alloc get_pointer_type(const void *Ptr, const context &Ctxt) {
250
250
pi_usm_type AllocTy;
251
251
252
252
// query type using PI function
253
- PI_CALL (piextUSMGetMemAllocInfo)(PICtx, Ptr, PI_MEM_ALLOC_TYPE,
254
- sizeof (pi_usm_type), &AllocTy, nullptr );
253
+ const detail::plugin &Plugin = CtxImpl->getPlugin ();
254
+ Plugin.call <detail::PiApiKind::piextUSMGetMemAllocInfo>(
255
+ PICtx, Ptr, PI_MEM_ALLOC_TYPE, sizeof (pi_usm_type), &AllocTy, nullptr );
255
256
256
257
alloc ResultAlloc;
257
258
switch (AllocTy) {
@@ -297,8 +298,9 @@ device get_pointer_device(const void *Ptr, const context &Ctxt) {
297
298
pi_device DeviceId;
298
299
299
300
// query device using PI function
300
- PI_CALL (piextUSMGetMemAllocInfo)(PICtx, Ptr, PI_MEM_ALLOC_DEVICE,
301
- sizeof (pi_device), &DeviceId, nullptr );
301
+ const detail::plugin &Plugin = CtxImpl->getPlugin ();
302
+ Plugin.call <detail::PiApiKind::piextUSMGetMemAllocInfo>(
303
+ PICtx, Ptr, PI_MEM_ALLOC_DEVICE, sizeof (pi_device), &DeviceId, nullptr );
302
304
303
305
for (const device &Dev : CtxImpl->getDevices ()) {
304
306
// Try to find the real sycl device used in the context
0 commit comments