Skip to content

Commit

Permalink
[Revert] Testing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
omarahmed1111 committed Nov 7, 2024
1 parent 2af73c3 commit 41e1826
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sycl/cmake/modules/FetchUnifiedRuntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if(SYCL_UR_USE_FETCH_CONTENT)
# Merge pull request #2038 from GeorgeWeb/georgi/unsupported-max-coop-wgsize
# [UR][hip][opencl] Mark urKernelSuggestMaxCooperativeGroupCountExp as unsupported
# instead of returning misleading default value
set(UNIFIED_RUNTIME_TAG 18d3063ecae625ea11d88fa8b7e09fef73bab34b)
set(UNIFIED_RUNTIME_TAG 6806e8b65c6cd878b6194118b88144d4f68ff7e8)

set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")
# Due to the use of dependentloadflag and no installer for UMF and hwloc we need
Expand Down
2 changes: 1 addition & 1 deletion sycl/cmake/modules/UnifiedRuntimeTag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Date: Wed Nov 6 16:45:49 2024 +0000
# Merge pull request #2276 from rafbiels/rafbiels/fix-hip-evbase
# Set the right HIP device before creating base event counter
set(UNIFIED_RUNTIME_TAG 2858a8a28d0b6524a3b2b0e25a597d1c8295ce9d)
set(UNIFIED_RUNTIME_TAG 6806e8b65c6cd878b6194118b88144d4f68ff7e8)
5 changes: 3 additions & 2 deletions sycl/source/detail/buffer_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ void buffer_impl::addInteropObject(
const AdapterPtr &Adapter = getAdapter();
ur_native_handle_t NativeHandle = 0;
Adapter->call<UrApiKind::urMemGetNativeHandle>(MInteropMemObject, nullptr,
&NativeHandle);
if (std::find(Handles.begin(), Handles.end(), NativeHandle) == Handles.end()) {
&NativeHandle);
if (std::find(Handles.begin(), Handles.end(), NativeHandle) ==
Handles.end()) {
Handles.push_back(NativeHandle);
}
}
Expand Down
3 changes: 2 additions & 1 deletion sycl/source/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ queue::queue(cl_command_queue clQueue, const context &SyclContext,
auto Context = detail::getSyclObjImpl(SyclContext);
auto Adapter = sycl::detail::ur::getAdapter<backend::opencl>();

ur_queue_native_properties_t Properties[] = {UR_STRUCTURE_TYPE_QUEUE_PROPERTIES, nullptr, 0};
ur_queue_native_properties_t Properties[] = {
UR_STRUCTURE_TYPE_QUEUE_PROPERTIES, nullptr, 0};
Adapter->call<detail::UrApiKind::urQueueCreateWithNativeHandle>(
detail::ur::cast<ur_native_handle_t>(clQueue), Context->getHandleRef(),
nullptr, Properties, &hQueue);
Expand Down

0 comments on commit 41e1826

Please sign in to comment.