Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Namespaces | Functions
copy.hpp File Reference

Reference CPU backend for accessor-respecting element copies. More...

#include <uni20/common/trace.hpp>
#include <uni20/linalg/backends/cpu/strided_transform.hpp>
#include <uni20/linalg/dispatch.hpp>
#include <uni20/linalg/operation_tags.hpp>
#include <uni20/mdspan/concepts.hpp>
#include <uni20/tensor/access.hpp>
#include <uni20/tensor/concepts.hpp>
#include <array>
#include <cstddef>
#include <type_traits>
#include <utility>
Include dependency graph for linalg/backends/cpu/copy.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  uni20
 
namespace  uni20::linalg
 

Functions

template<uni20::MutableMdspecLike OutputMdspan, uni20::MdspecLike InputMdspan>
requires uni20::HostWritableMdspec<OutputMdspan> && uni20::HostReadableMdspec<InputMdspan>
consteval auto uni20::linalg::kernel_accepts_types (CpuReferenceBackend const &, copy_op const &, OutputMdspan &, InputMdspan &)
 Report eligibility for a host-accessible mdspec element copy.
 
template<uni20::MutableMdspecLike OutputMdspan, uni20::MdspecLike InputMdspan>
requires uni20::HostWritableMdspec<OutputMdspan> && uni20::HostReadableMdspec<InputMdspan>
KernelAttempt uni20::linalg::try_kernel (CpuReferenceBackend, copy_op const &, OutputMdspan &output, InputMdspan &input)
 Resolve host access and copy through the resulting mdspans.
 

Detailed Description

Reference CPU backend for accessor-respecting element copies.