diff --git a/sycl/plugins/unified_runtime/CMakeLists.txt b/sycl/plugins/unified_runtime/CMakeLists.txt index 77cc484beb25b..1ce82da50689e 100644 --- a/sycl/plugins/unified_runtime/CMakeLists.txt +++ b/sycl/plugins/unified_runtime/CMakeLists.txt @@ -56,15 +56,14 @@ endif() if(SYCL_PI_UR_USE_FETCH_CONTENT) include(FetchContent) - set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git") - # commit c0b1f13d94966090a1bb982b3bd747b30b9ef9d3 - # Merge: 475ce8b4 cf806c37 - # Author: aarongreig - # Date: Mon Feb 5 13:41:50 2024 +0000 - # Merge pull request #1240 from cppchedy/chedy/fix-bi-copy-image - # - # [Bindless][exp] 1D Image copy fix - set(UNIFIED_RUNTIME_TAG c0b1f13d94966090a1bb982b3bd747b30b9ef9d3) + set(UNIFIED_RUNTIME_REPO "https://github.com/pbalcer/unified-runtime.git") + # commit d216eb44d5c9fe3433eecdd09b10e3e79ac25bd7 + # Merge: 40517d2b fc1f3066 + # Author: Kenneth Benzie (Benie) + # Date: Wed Jan 31 10:38:07 2024 +0000 + # Merge pull request #1226 from hdelan/get-native-mem-on-device2 + # [UR] Add extra param to urMemGetNativeHandle + set(UNIFIED_RUNTIME_TAG c56b44e7efd084617df349dbf49ce14b00aa8c11) if(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO) set(UNIFIED_RUNTIME_REPO "${SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO}") diff --git a/sycl/plugins/unified_runtime/pi2ur.hpp b/sycl/plugins/unified_runtime/pi2ur.hpp index 4f0c7a8a1f885..ed232c74e3c73 100644 --- a/sycl/plugins/unified_runtime/pi2ur.hpp +++ b/sycl/plugins/unified_runtime/pi2ur.hpp @@ -1313,6 +1313,12 @@ piextDeviceCreateWithNativeHandle(pi_native_handle NativeHandle, PI_ASSERT(Device, PI_ERROR_INVALID_DEVICE); PI_ASSERT(NativeHandle, PI_ERROR_INVALID_VALUE); + ur_adapter_handle_t adapter = nullptr; + if (auto res = PiGetAdapter(adapter); res != PI_SUCCESS) { + return res; + } + (void)adapter; + ur_native_handle_t UrNativeDevice = reinterpret_cast(NativeHandle); ur_platform_handle_t UrPlatform =