IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

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.