13namespace uni20::linalg::detail::cuda_reference
16template <
class Accessor>
struct RawCudaAccessorTraits
18 static constexpr bool is_raw =
false;
19 static constexpr bool is_mutable =
false;
20 static constexpr bool is_const =
false;
23template <
class ElementType>
struct RawCudaAccessorTraits<
uni20::cuda::CudaPointerAccessor<ElementType>>
25 static constexpr bool is_raw =
true;
26 static constexpr bool is_mutable = !std::is_const_v<ElementType>;
27 static constexpr bool is_const = std::is_const_v<ElementType>;
30template <
class Mdspec>
31inline constexpr bool is_raw_cuda_mdspec =
33 RawCudaAccessorTraits<typename std::remove_cvref_t<Mdspec>::accessor_type>::is_raw;
35template <
class Mdspec>
36inline constexpr bool is_raw_mutable_cuda_mdspec =
38 RawCudaAccessorTraits<typename std::remove_cvref_t<Mdspec>::accessor_type>::is_mutable;
40template <
class Mdspec>
41inline constexpr bool is_raw_const_cuda_mdspec =
43 RawCudaAccessorTraits<typename std::remove_cvref_t<Mdspec>::accessor_type>::is_const;
CUDA-accessible mdspec backed by a CudaBufferView descriptor.
Definition cuda_storage.hpp:118
CUDA Tensor storage with deferred device-memory data descriptors.
Definition async/async.hpp:26