2727
2828#include < cuda/__memory_resource/get_memory_resource.h>
2929#include < cuda/__memory_resource/properties.h>
30- #include < cuda/__memory_resource/resource_ref.h>
3130#include < cuda/__stream/get_stream.h>
3231#include < cuda/std/__execution/env.h>
3332#include < cuda/std/__iterator/concepts.h>
5049#include < cuda/experimental/__execution/policy.cuh>
5150#include < cuda/experimental/__launch/host_launch.cuh>
5251#include < cuda/experimental/__memory_resource/any_resource.cuh>
53- #include < cuda/experimental/__memory_resource/properties.cuh>
5452#include < cuda/experimental/__utility/ensure_current_device.cuh>
5553
5654#include < cuda/std/__cccl/prologue.h>
@@ -96,7 +94,7 @@ public:
9694 using const_reverse_iterator = ::cuda::std::reverse_iterator<const_iterator>;
9795 using size_type = ::cuda::std::size_t ;
9896 using difference_type = ::cuda::std::ptrdiff_t ;
99- using properties_list = ::cuda::experimental ::properties_list<_Properties...>;
97+ using properties_list = ::cuda::mr ::properties_list<_Properties...>;
10098
10199 using __buffer_t = ::cuda::experimental::uninitialized_async_buffer<_Tp, _Properties...>;
102100 using __resource_t = ::cuda::experimental::any_resource<_Properties...>;
@@ -533,7 +531,7 @@ public:
533531
534532 // ! @brief Causes the buffer to be treated as a span when passed to cudax::launch.
535533 // ! @pre The buffer must have the cuda::mr::device_accessible property.
536- template <class _DeviceAccessible = device_accessible>
534+ template <class _DeviceAccessible = ::cuda::mr:: device_accessible>
537535 [[nodiscard]] _CCCL_HIDE_FROM_ABI friend auto
538536 transform_device_argument (::cuda::stream_ref, async_buffer& __self) noexcept
539537 _CCCL_TRAILING_REQUIRES(::cuda::std::span<_Tp>)(::cuda::std::__is_included_in_v<_DeviceAccessible, _Properties...>)
@@ -544,7 +542,7 @@ public:
544542
545543 // ! @brief Causes the buffer to be treated as a span when passed to cudax::launch
546544 // ! @pre The buffer must have the cuda::mr::device_accessible property.
547- template <class _DeviceAccessible = device_accessible>
545+ template <class _DeviceAccessible = ::cuda::mr:: device_accessible>
548546 [[nodiscard]] _CCCL_HIDE_FROM_ABI friend auto
549547 transform_device_argument (::cuda::stream_ref, const async_buffer& __self) noexcept _CCCL_TRAILING_REQUIRES(
550548 ::cuda::std::span<const _Tp>)(::cuda::std::__is_included_in_v<_DeviceAccessible, _Properties...>)
@@ -634,7 +632,7 @@ async_buffer<_Tp, _TargetProperties...> make_async_buffer(
634632}
635633
636634_CCCL_TEMPLATE (class _Tp , class _Resource , class ... _SourceProperties, class _Env = ::cuda::std::execution::env<>)
637- _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND __has_default_queries<_Resource>)
635+ _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND ::cuda::mr:: __has_default_queries<_Resource>)
638636auto make_async_buffer(
639637 stream_ref __stream, _Resource&& __mr, const async_buffer<_Tp, _SourceProperties...>& __source, const _Env& __env = {})
640638{
@@ -656,8 +654,8 @@ make_async_buffer(stream_ref __stream, any_resource<_Properties...> __mr, const
656654}
657655
658656_CCCL_TEMPLATE (class _Tp , class _Resource , class _Env = ::cuda::std::execution::env<>)
659- _CCCL_REQUIRES(
660- ::cuda::mr::resource<_Resource> _CCCL_AND __has_default_queries<_Resource> _CCCL_AND __buffer_compatible_env<_Env>)
657+ _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND ::cuda::mr::__has_default_queries<_Resource> _CCCL_AND
658+ __buffer_compatible_env<_Env>)
661659auto make_async_buffer(stream_ref __stream, _Resource&& __mr, const _Env& __env = {})
662660{
663661 using __buffer_type = __buffer_type_for_props<_Tp, typename ::cuda::std::decay_t <_Resource>::default_queries>;
@@ -669,7 +667,11 @@ _CCCL_BEGIN_NAMESPACE_ARCH_DEPENDENT
669667// Size and value make function
670668template <class _Tp , class ... _Properties, class _Env = ::cuda::std::execution::env<>>
671669async_buffer<_Tp, _Properties...> make_async_buffer (
672- stream_ref __stream, any_resource<_Properties...> __mr, size_t __size, const _Tp& __value, const _Env& __env = {})
670+ stream_ref __stream,
671+ any_resource<_Properties...> __mr,
672+ size_t __size,
673+ const _Tp& __value,
674+ [[maybe_unused]] const _Env& __env = {})
673675{
674676 auto __res = async_buffer<_Tp, _Properties...>{__stream, __mr, __size, no_init};
675677 __fill_n<_Tp, !::cuda::mr::__is_device_accessible<_Properties...>>(
@@ -678,7 +680,7 @@ async_buffer<_Tp, _Properties...> make_async_buffer(
678680}
679681
680682_CCCL_TEMPLATE (class _Tp , class _Resource , class _Env = ::cuda::std::execution::env<>)
681- _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND __has_default_queries<_Resource>)
683+ _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND ::cuda::mr:: __has_default_queries<_Resource>)
682684auto make_async_buffer(
683685 stream_ref __stream, _Resource&& __mr, size_t __size, const _Tp& __value, [[maybe_unused]] const _Env& __env = {})
684686{
@@ -705,7 +707,7 @@ async_buffer<_Tp, _Properties...> make_async_buffer(
705707}
706708
707709_CCCL_TEMPLATE (class _Tp , class _Resource , class _Env = ::cuda::std::execution::env<>)
708- _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND __has_default_queries<_Resource>)
710+ _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND ::cuda::mr:: __has_default_queries<_Resource>)
709711auto make_async_buffer(
710712 stream_ref __stream, _Resource&& __mr, size_t __size, ::cuda::experimental::no_init_t , const _Env& __env = {})
711713{
@@ -723,8 +725,8 @@ async_buffer<_Tp, _Properties...> make_async_buffer(
723725}
724726
725727_CCCL_TEMPLATE (class _Tp , class _Resource , class _Iter , class _Env = ::cuda::std::execution::env<>)
726- _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND
727- __has_default_queries<_Resource> _CCCL_AND ::cuda::std::__has_forward_traversal<_Iter>)
728+ _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND ::cuda::mr::__has_default_queries<_Resource>
729+ _CCCL_AND ::cuda::std::__has_forward_traversal<_Iter>)
728730auto make_async_buffer(stream_ref __stream, _Resource&& __mr, _Iter __first, _Iter __last, const _Env& __env = {})
729731{
730732 using __buffer_type = __buffer_type_for_props<_Tp, typename ::cuda::std::decay_t <_Resource>::default_queries>;
@@ -743,7 +745,7 @@ async_buffer<_Tp, _Properties...> make_async_buffer(
743745}
744746
745747_CCCL_TEMPLATE (class _Tp , class _Resource , class _Env = ::cuda::std::execution::env<>)
746- _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND __has_default_queries<_Resource>)
748+ _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND ::cuda::mr:: __has_default_queries<_Resource>)
747749auto make_async_buffer(
748750 stream_ref __stream, _Resource&& __mr, ::cuda::std::initializer_list<_Tp> __ilist, const _Env& __env = {})
749751{
@@ -761,8 +763,8 @@ make_async_buffer(stream_ref __stream, any_resource<_Properties...> __mr, _Range
761763}
762764
763765_CCCL_TEMPLATE (class _Tp , class _Resource , class _Range , class _Env = ::cuda::std::execution::env<>)
764- _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND
765- __has_default_queries<_Resource> _CCCL_AND ::cuda::std::ranges::forward_range<_Range>)
766+ _CCCL_REQUIRES(::cuda::mr::resource<_Resource> _CCCL_AND ::cuda::mr::__has_default_queries<_Resource>
767+ _CCCL_AND ::cuda::std::ranges::forward_range<_Range>)
766768auto make_async_buffer(stream_ref __stream, _Resource&& __mr, _Range&& __range, const _Env& __env = {})
767769{
768770 using __buffer_type = __buffer_type_for_props<_Tp, typename ::cuda::std::decay_t <_Resource>::default_queries>;
0 commit comments