Struct cuda_oxide::mem::DevicePtr [−][src]
pub struct DevicePtr<'a> { /* fields omitted */ }Expand description
A slice into the device memory.
Implementations
Synchronously copies data from self to target. Panics if length is not equal.
pub fn copy_to_stream<'b, 'c: 'b + 'a>(
&self,
target: &DevicePtr<'b>,
stream: &mut Stream<'c>
) -> CudaResult<()> where
'a: 'b, [src]
pub fn copy_to_stream<'b, 'c: 'b + 'a>(
&self,
target: &DevicePtr<'b>,
stream: &mut Stream<'c>
) -> CudaResult<()> where
'a: 'b, [src]Asynchronously copies data from self to target. Panics if length is not equal.
Synchronously copies data from source to self. Panics if length is not equal.
pub fn copy_from_stream<'b: 'a, 'c: 'a + 'b>(
&self,
source: &DevicePtr<'b>,
stream: &mut Stream<'c>
) -> CudaResult<()>[src]
pub fn copy_from_stream<'b: 'a, 'c: 'a + 'b>(
&self,
source: &DevicePtr<'b>,
stream: &mut Stream<'c>
) -> CudaResult<()>[src]Asynchronously copies data from source to self. Panics if length is not equal.
Synchronously loads the data from this slice into a local buffer
Asynchronously loads the data from this slice into a local buffer.
The contents of the buffer are undefined until stream.sync is called.
The output must not be dropped until the stream is synced.
Synchronously stores host data from data to self.
Asynchronously stores host data from data to self.
The data must not be dropped or mutated until stream.sync is called.
Synchronously set the contents of self to data repeated to fill length
Asynchronously set the contents of self to data repeated to fill length
Synchronously set the contents of self to data repeated to fill length.
Panics if Self::len is not a multiple of 2.
Asynchronously set the contents of self to data repeated to fill length.
Panics if Self::len is not a multiple of 2.
Synchronously set the contents of self to data repeated to fill length.
Panics if Self::len is not a multiple of 4.
Asynchronously set the contents of self to data repeated to fill length.
Panics if Self::len is not a multiple of 4.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DevicePtr<'a>impl<'a> UnwindSafe for DevicePtr<'a>Blanket Implementations
Mutably borrows from an owned value. Read more