pub enum AllocationSource {
Unknown,
RmmOutOfMemory,
RmmBadAlloc,
StdBadAlloc,
}Expand description
Which allocation-failure exception type produced a cuGraph allocation error.
Records the C++ exception type caught by cuGraph. Because rmm::out_of_memory
derives from rmm::bad_alloc and std::bad_alloc, the most-derived matching
variant is reported. Unknown covers non-allocation errors, missing error
objects, and unrecognized native values.
Variants§
Unknown
The C error object did not explicitly report a known allocation path.
RmmOutOfMemory
rmm::out_of_memory.
RmmBadAlloc
rmm::bad_alloc.
StdBadAlloc
std::bad_alloc.
Implementations§
Trait Implementations§
Source§impl Clone for AllocationSource
impl Clone for AllocationSource
impl Copy for AllocationSource
Source§impl Debug for AllocationSource
impl Debug for AllocationSource
Source§impl Default for AllocationSource
impl Default for AllocationSource
Source§impl Display for AllocationSource
impl Display for AllocationSource
impl Eq for AllocationSource
Source§impl Hash for AllocationSource
impl Hash for AllocationSource
Source§impl PartialEq for AllocationSource
impl PartialEq for AllocationSource
impl StructuralPartialEq for AllocationSource
Auto Trait Implementations§
impl Freeze for AllocationSource
impl RefUnwindSafe for AllocationSource
impl Send for AllocationSource
impl Sync for AllocationSource
impl Unpin for AllocationSource
impl UnsafeUnpin for AllocationSource
impl UnwindSafe for AllocationSource
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.