pub struct CudaConfig {
pub main_gpu: Option<u32>,
pub use_cuda_devices: Vec<u32>,
/* private fields */
}Fields§
§main_gpu: Option<u32>The main GPU device ordinal. Defaults to the largest VRAM device.
use_cuda_devices: Vec<u32>Ordinals of the devices to use.
Implementations§
Source§impl CudaConfig
impl CudaConfig
pub fn new_from_cuda_devices(use_cuda_devices: Vec<u32>) -> Self
pub fn new_with_main_device(use_cuda_devices: Vec<u32>, main_gpu: u32) -> Self
Trait Implementations§
Source§impl Clone for CudaConfig
impl Clone for CudaConfig
Source§fn clone(&self) -> CudaConfig
fn clone(&self) -> CudaConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CudaConfig
impl Debug for CudaConfig
Source§impl Default for CudaConfig
impl Default for CudaConfig
Source§fn default() -> CudaConfig
fn default() -> CudaConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CudaConfig
impl RefUnwindSafe for CudaConfig
impl Send for CudaConfig
impl Sync for CudaConfig
impl Unpin for CudaConfig
impl UnwindSafe for CudaConfig
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