Skip to content

Commit 73e0bad

Browse files
committed
[oneDPL][ranges][merge] + redo __get_value() change; => __get_value(size_t idx = 0)
1 parent 794b4c1 commit 73e0bad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -667,17 +667,10 @@ struct __result_and_scratch_storage : __result_and_scratch_storage_base
667667
return __get_value();
668668
}
669669

670-
private:
671-
bool
672-
is_USM() const
673-
{
674-
return __supports_USM_device;
675-
}
676-
677670
// Note: this member function assumes the result is *ready*, since the __future has already
678671
// waited on the relevant event.
679672
_T
680-
__get_value() const
673+
__get_value(size_t idx = 0) const
681674
{
682675
assert(__result_n == 1);
683676
if (__use_USM_host && __supports_USM_device)
@@ -696,6 +689,13 @@ struct __result_and_scratch_storage : __result_and_scratch_storage_base
696689
}
697690
}
698691

692+
private:
693+
bool
694+
is_USM() const
695+
{
696+
return __supports_USM_device;
697+
}
698+
699699
template <typename _Type>
700700
std::size_t
701701
__fill_data(std::pair<_Type, _Type>&& __p, std::size_t* __p_buf) const

0 commit comments

Comments
 (0)