pub struct RocmContext { /* private fields */ }Expand description
ROCm execution context.
Status: Not yet implemented. This type exists as an API placeholder.
All operations on RocmBackend currently return errors.
When implemented, will encapsulate ROCm-side execution resources: a HIP stream, GPU workspace buffer, and plan cache. Analogous to hipTENSOR’s handle.
§Examples
ⓘ
// Aspirational API — not yet functional.
use tenferro_prims::RocmContext;
// Created internally by RocmBackend::load_hiptensor()Implementations§
Source§impl RocmContext
impl RocmContext
Trait Implementations§
Source§impl Default for RocmContext
impl Default for RocmContext
Source§impl<Input> TensorComplexRealContextFor<Input> for RocmContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar,
RocmBackend: TensorComplexRealPrims<Input, Context = RocmContext, Real = Input::Real>,
impl<Input> TensorComplexRealContextFor<Input> for RocmContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar,
RocmBackend: TensorComplexRealPrims<Input, Context = RocmContext, Real = Input::Real>,
Source§type ComplexRealBackend = RocmBackend
type ComplexRealBackend = RocmBackend
Backend associated with this context for the complex-to-real family.
Source§impl<Input> TensorComplexScaleContextFor<Input> for RocmContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar + Send + Sync,
RocmBackend: TensorComplexScalePrims<Input, Context = RocmContext>,
impl<Input> TensorComplexScaleContextFor<Input> for RocmContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar + Send + Sync,
RocmBackend: TensorComplexScalePrims<Input, Context = RocmContext>,
Source§type ComplexScaleBackend = RocmBackend
type ComplexScaleBackend = RocmBackend
Backend associated with the complex-by-real family.
Source§impl<Alg> TensorIndexingContextFor<Alg> for RocmContext
impl<Alg> TensorIndexingContextFor<Alg> for RocmContext
Source§type IndexingBackend = RocmBackend
type IndexingBackend = RocmBackend
Backend associated with this context for the indexing family.
Source§impl TensorMetadataContextFor for RocmContext
impl TensorMetadataContextFor for RocmContext
Source§type MetadataBackend = RocmBackend
type MetadataBackend = RocmBackend
Backend associated with this context for the metadata family.
Source§impl<T> TensorResolveConjContextFor<T> for RocmContext
impl<T> TensorResolveConjContextFor<T> for RocmContext
Source§fn resolve_conj(ctx: &mut Self, src: &Tensor<T>) -> Tensor<T>
fn resolve_conj(ctx: &mut Self, src: &Tensor<T>) -> Tensor<T>
Materialize a lazily-conjugated tensor using the backend tied to
Self.Source§impl<Alg> TensorScalarContextFor<Alg> for RocmContext
impl<Alg> TensorScalarContextFor<Alg> for RocmContext
Source§type ScalarBackend = RocmBackend
type ScalarBackend = RocmBackend
Backend associated with this context for the scalar family.
Source§impl<Alg> TensorSemiringContextFor<Alg> for RocmContext
impl<Alg> TensorSemiringContextFor<Alg> for RocmContext
Source§type SemiringBackend = RocmBackend
type SemiringBackend = RocmBackend
Backend associated with this context for the given algebra family.
Source§impl<Alg> TensorSortContextFor<Alg> for RocmContextwhere
Alg: Algebra,
Alg::Scalar: PartialOrd,
RocmBackend: TensorSortPrims<Alg, Context = RocmContext>,
impl<Alg> TensorSortContextFor<Alg> for RocmContextwhere
Alg: Algebra,
Alg::Scalar: PartialOrd,
RocmBackend: TensorSortPrims<Alg, Context = RocmContext>,
Source§type SortBackend = RocmBackend
type SortBackend = RocmBackend
Backend associated with this context for the sort family.
Auto Trait Implementations§
impl Freeze for RocmContext
impl !RefUnwindSafe for RocmContext
impl !Send for RocmContext
impl !Sync for RocmContext
impl Unpin for RocmContext
impl !UnwindSafe for RocmContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more