Skip to content

[TEST] Cover Gluon math helper ops#466

Draft
Jokeren wants to merge 1 commit into
test/gluon-shared-memory-descriptor-opsfrom
test/gluon-math-helper-ops
Draft

[TEST] Cover Gluon math helper ops#466
Jokeren wants to merge 1 commit into
test/gluon-shared-memory-descriptor-opsfrom
test/gluon-math-helper-ops

Conversation

@Jokeren

@Jokeren Jokeren commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

Add CPU-result coverage for Gluon math helper operations.

This adds a focused end-to-end test that:

  • runs exp2 and log2
  • uses where and sum for a masked scalar reduction
  • uses clamp for vector output
  • checks all results against CPU/PyTorch references

The branch also patches Gluon standard sum and max helpers in the simulation scope. These helpers are Gluon JIT functions rather than builtin-marked functions, so they need explicit NumPy-backed replacements when running through the interpreter.

Validation

  • PYTHONPATH=/mnt/keren/triton-viz pytest tests/end_to_end/test_gluon_math_helper_ops.py -q
  • PYTHONPATH=/mnt/keren/triton-viz pytest tests/end_to_end/test_gluon_math_helper_ops.py tests/end_to_end/test_gluon_shared_memory_descriptor_ops.py tests/end_to_end/test_gluon_blackwell_tcgen05_multicast_ops.py tests/end_to_end/test_gluon_blackwell_tcgen05_two_cta_ops.py tests/end_to_end/test_gluon_blackwell_tensor_memory_reduction_ops.py tests/end_to_end/test_gluon_blackwell_tcgen05_copy_ops.py tests/end_to_end/test_gluon_blackwell_tcgen05_scaled_ops.py tests/end_to_end/test_gluon_blackwell_tcgen05_ops.py tests/end_to_end/test_gluon_blackwell_tensor_memory_ops.py tests/end_to_end/test_gluon_wgmma_ops.py tests/end_to_end/test_gluon_tma_im2col_ops.py tests/end_to_end/test_gluon_blackwell_tma_ops.py tests/end_to_end/test_gluon_tma_ops.py tests/end_to_end/test_gluon_async_copy_ops.py tests/end_to_end/test_gluon_core_ops.py tests/end_to_end/test_gluon.py tests/end_to_end/test_core.py tests/unit/test_adapters.py -q
  • pre-commit run --files triton_viz/core/simulation/gluon.py tests/end_to_end/test_gluon_math_helper_ops.py

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.

1 participant