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).

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

  • Attribute: Represents GPU kernel function attributes.
  • FuncAttribute: Implements CUDA's CUfunction_attribute enum for GPU kernel function attributes.