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

Mojo module

func_attribute

GPU Kernel Function Attributes Module.

This module provides structures for defining and managing GPU kernel function attributes. It implements functionality similar to CUDA's CUfunction_attribute enum, allowing for querying and setting various attributes that control kernel execution behavior and resource allocation.

The module includes:

  • Attribute: A value type representing different GPU kernel function attribute types
  • FuncAttribute: A structure that pairs an attribute type with its value

These structures enable fine-grained control over GPU kernel execution parameters such as shared memory allocation, cache behavior, and cluster configuration.

Structsโ€‹