Skip to content

[TIRx][CUDA] Allow launch bounds with required block size - #20226

Merged
spectrometerHBH merged 1 commit into
apache:mainfrom
spectrometerHBH:fix/tirx-required-block-launch-bounds
Aug 29, 2026
Merged

[TIRx][CUDA] Allow launch bounds with required block size#20226
spectrometerHBH merged 1 commit into
apache:mainfrom
spectrometerHBH:fix/tirx-required-block-launch-bounds

Conversation

@spectrometerHBH

Copy link
Copy Markdown
Contributor

This change allows tirx.required_block_size to be combined with CUDA launch-bounds attributes while preserving the existing incompatibility with tirx.max_registers.

The combination is needed for kernels that require exact block/cluster dimensions and also need a minimum blocks-per-SM launch bound. The CUDA code generator now emits both attributes, and SplitHostDevice retains the supported combination.

Tests:

  • python -m pytest -q tests/python/tirx-transform/test_tir_transform_split_host_device.py tests/python/tirx/codegen/test_codegen_cuda.py (225 passed)
  • pre-commit run --files src/backend/cuda/codegen/codegen_cuda.cc src/tirx/transform/split_host_device.cc tests/python/tirx-transform/test_tir_transform_split_host_device.py tests/python/tirx/codegen/test_codegen_cuda.py

@spectrometerHBH
spectrometerHBH merged commit 448041d into apache:main Aug 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants