pub struct CudaDeviceInfo {Show 17 fields
pub id: i32,
pub name: String,
pub major: i32,
pub minor: i32,
pub multi_processor_count: i32,
pub total_global_mem: usize,
pub shared_mem_per_block: usize,
pub regs_per_block: i32,
pub warp_size: i32,
pub max_threads_per_block: i32,
pub max_threads_per_multi_processor: i32,
pub max_blocks_per_multi_processor: i32,
pub max_threads_dim: [i32; 3],
pub max_grid_size: [i32; 3],
pub memory_bus_width: i32,
pub l2_cache_size: i32,
pub concurrent_kernels: i32,
}Expand description
A CUDA device’s static properties, read from cudaGetDeviceProperties at
CudaDevice::try_new time.
Fields§
§id: i32The device’s ordinal ID.
name: StringThe device’s name (e.g. "NVIDIA GeForce RTX 5070").
major: i32Compute capability major version.
minor: i32Compute capability minor version.
multi_processor_count: i32Number of streaming multiprocessors.
total_global_mem: usizeTotal global memory, in bytes.
Shared memory available per block, in bytes.
regs_per_block: i32Number of 32-bit registers available per block.
warp_size: i32Warp size in threads.
max_threads_per_block: i32Maximum threads per block.
max_threads_per_multi_processor: i32Maximum resident threads per multiprocessor.
max_blocks_per_multi_processor: i32Maximum resident blocks per multiprocessor.
max_threads_dim: [i32; 3]Maximum block size, per dimension.
max_grid_size: [i32; 3]Maximum grid size, per dimension.
memory_bus_width: i32Global memory bus width, in bits.
l2_cache_size: i32L2 cache size, in bytes.
concurrent_kernels: i32Whether the device supports executing multiple kernels concurrently.
Implementations§
Trait Implementations§
Source§impl Clone for CudaDeviceInfo
impl Clone for CudaDeviceInfo
Source§fn clone(&self) -> CudaDeviceInfo
fn clone(&self) -> CudaDeviceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CudaDeviceInfo
impl Debug for CudaDeviceInfo
Auto Trait Implementations§
impl Freeze for CudaDeviceInfo
impl RefUnwindSafe for CudaDeviceInfo
impl Send for CudaDeviceInfo
impl Sync for CudaDeviceInfo
impl Unpin for CudaDeviceInfo
impl UnsafeUnpin for CudaDeviceInfo
impl UnwindSafe for CudaDeviceInfo
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