rocm.comgr.amdhsa_kernel_directives#

2026-09-24

4 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

AMD HSA kernel directives.

The data tables below (arch_supported_expressions, arch_unsupported_expressions, directives) are scraped from the upstream LLVM AMD GPU usage docs. The JavaScript snippet that performs the scrape is kept as a plain #-comment block right below this docstring (out of the docstring on purpose: a markdown fenced JS block and the JS template-literal backticks confuse the RST/MyST parser used by sphinx-autoapi). To regenerate the data: open <https://llvm.org/docs/AMDGPUUsage.html>, paste the snippet into the browser console, and replace the data tables with the captured output.

Attributes#

Functions#

split_amdgpu_arch(amdgpu_arch)

is_amdgpu_arch_supported(→ str)

is_amdgpu_arch_unsupported(→ str)

iter_supported_directives(→ Generator[dict[str, object]])

Module Contents#

rocm.comgr.amdhsa_kernel_directives.p_amdgpu_arch#
rocm.comgr.amdhsa_kernel_directives.split_amdgpu_arch(amdgpu_arch)#
rocm.comgr.amdhsa_kernel_directives.is_amdgpu_arch_supported(supported_expression: str, amdgpu_arch: str) → str#
rocm.comgr.amdhsa_kernel_directives.is_amdgpu_arch_unsupported(unsupported_expression: str, amdgpu_arch: str) → str#
rocm.comgr.amdhsa_kernel_directives.iter_supported_directives(amdgpu_arch: str, features: list[str]) → Generator[dict[str, object]]#
rocm.comgr.amdhsa_kernel_directives.arch_supported_expressions = ['GFX6-GFX12', 'GFX6-GFX10', 'GFX12.5', 'GFX10-GFX12', 'GFX1250+', 'GFX942', 'GFX11-GFX12',...#
rocm.comgr.amdhsa_kernel_directives.arch_unsupported_expressions = ['GFX942']#
rocm.comgr.amdhsa_kernel_directives.directives#