Skip to main content
Log in

Mojo module

device_attribute

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.

Structs

  • DeviceAttribute: Represents CUDA device attributes that can be queried from a GPU device.