device_attribute | Modular
Mojo module
This module defines GPU device attributes that can be queried from CUDA-compatible devices.
The module provides the DeviceAttribute struct which encapsulates the various device
properties and capabilities that can be queried through the CUDA driver API. Each attribute
is represented as a constant with a corresponding integer value that maps to the CUDA
driver's attribute enumeration.
These attributes allow applications to query specific hardware capabilities and limitations of GPU devices, such as maximum thread counts, memory sizes, compute capabilities, and supported features.
See the DeviceContext page
for examples that retrieve DeviceAttribute values.
Structs
-
DeviceAttribute: Represents CUDA device attributes that can be queried from a GPU device.
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?