pub struct DeviceProperties {Show 21 fields
pub name: String,
pub total_global_memory_bytes: u64,
pub shared_memory_per_block_bytes: u64,
pub regs_per_block: i32,
pub warp_size: i32,
pub max_threads_per_block: i32,
pub max_block_dim: [i32; 3],
pub max_grid_dim: [i32; 3],
pub clock_rate_khz: i32,
pub memory_clock_rate_khz: i32,
pub memory_bus_width_bits: i32,
pub l2_cache_size_bytes: i32,
pub max_threads_per_sm: i32,
pub multiprocessor_count: i32,
pub compute_capability_major: i32,
pub compute_capability_minor: i32,
pub integrated: bool,
pub concurrent_kernels: bool,
pub pci_bus_id: i32,
pub pci_device_id: i32,
pub pci_domain_id: i32,
}Expand description
Subset of cudaDeviceProp fields most users care about. The full C
struct is ~1 KB with fields that are rarely accessed — we surface the
hot-path ones and keep a reserved _raw slot for the whole buffer so
advanced users can cast through.
Fields§
§name: StringASCII device name as reported by cudaGetDeviceProperties.
total_global_memory_bytes: u64Total global memory, in bytes.
Maximum shared memory available per block, in bytes.
regs_per_block: i32Number of 32-bit registers available per block.
warp_size: i32Warp size in threads (32 on all current architectures).
max_threads_per_block: i32Maximum number of threads per block.
max_block_dim: [i32; 3]Maximum block dimensions [x, y, z].
max_grid_dim: [i32; 3]Maximum grid dimensions [x, y, z].
clock_rate_khz: i32Peak SM clock frequency, in kHz.
memory_clock_rate_khz: i32Peak memory clock frequency, in kHz.
memory_bus_width_bits: i32Width of the global-memory bus, in bits.
l2_cache_size_bytes: i32L2 cache capacity, in bytes.
max_threads_per_sm: i32Maximum number of resident threads per SM.
multiprocessor_count: i32Number of streaming multiprocessors on the device.
compute_capability_major: i32Major part of the compute capability (e.g. 8 for sm_89).
compute_capability_minor: i32Minor part of the compute capability (e.g. 9 for sm_89).
integrated: booltrue if the device shares memory with the host (iGPU).
concurrent_kernels: booltrue if the device supports concurrent kernel execution.
pci_bus_id: i32PCI bus ID.
pci_device_id: i32PCI device ID.
pci_domain_id: i32PCI domain ID.
Trait Implementations§
Source§impl Clone for DeviceProperties
impl Clone for DeviceProperties
Source§fn clone(&self) -> DeviceProperties
fn clone(&self) -> DeviceProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more