diff --git a/sycl/plugins/hip/pi_hip.cpp b/sycl/plugins/hip/pi_hip.cpp index 97dd5baab67c..0fe1d00365c6 100644 --- a/sycl/plugins/hip/pi_hip.cpp +++ b/sycl/plugins/hip/pi_hip.cpp @@ -4755,7 +4755,7 @@ pi_result hip_piextUSMGetMemAllocInfo(pi_context context, const void *ptr, static_cast(hipPointerAttributeType.devicePointer); value = *devicePointer; pi_platform platform; - result = hip_piPlatformsGet(0, &platform, nullptr); + result = hip_piPlatformsGet(1, &platform, nullptr); pi_device device = platform->devices_[value].get(); return getInfo(param_value_size, param_value, param_value_size_ret, device);