Enum rcudnn::cudaMemcpyKind [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum cudaMemcpyKind {
cudaMemcpyHostToHost,
cudaMemcpyHostToDevice,
cudaMemcpyDeviceToHost,
cudaMemcpyDeviceToDevice,
cudaMemcpyDefault,
}
Expand description
CUDA memory copy types
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
cudaMemcpyHostToHost
< Host -> Host
cudaMemcpyHostToDevice
< Host -> Device
cudaMemcpyDeviceToHost
< Device -> Host
cudaMemcpyDeviceToDevice
< Device -> Device
cudaMemcpyDefault
< Direction of the transfer is inferred from the pointer values. Requires unified virtual addressing
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for cudaMemcpyKind
impl Send for cudaMemcpyKind
impl Sync for cudaMemcpyKind
impl Unpin for cudaMemcpyKind
impl UnwindSafe for cudaMemcpyKind
Blanket Implementations
Mutably borrows from an owned value. Read more