fix: add missing NVTE_BHSD to qkv format to_string - #3362
Conversation
Squashed to single commit for review. Original PR: #16
Greptile SummaryThe PR adds the missing
Confidence Score: 4/5The implementation is not ready to merge because the regression test remains outside every configured C++ test target and therefore never runs. The enum mapping itself is straightforward, but the previously reported coverage failure remains: CI builds the explicitly registered tests/cpp targets, while the new root-level source is not included in any target. Files Needing Attention: tests/test_qkv_format_to_string.cpp; tests/cpp/util/CMakeLists.txt Important Files Changed
Reviews (2): Last reviewed commit: "[pre-commit.ci] auto fixes from pre-comm..." | Re-trigger Greptile |
| TEST(QKVFormatToString, BHSD) { | ||
| EXPECT_EQ(transformer_engine::to_string(NVTE_QKV_Format::NVTE_BHSD), "NVTE_BHSD"); | ||
| } |
There was a problem hiding this comment.
This file is outside the tests/cpp CMake project, whose test targets use explicit source lists, so CI never compiles or executes this assertion and the new mapping receives no regression coverage.
Knowledge Base Used: Tests and QA
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
This test can be removed - the addition of BHSD in the enum is a pretty obvious change and it won't make any tests fail. Also, the test probably can't compile (and it should be in the tests/cpp folder as well if we wanted to add this CPP test). Thanks!
There was a problem hiding this comment.
Agreed — the change itself is straightforward and self-evident. Removing the test file is the right call, especially since it wouldn't compile as-is and belongs in tests/cpp if it were to be kept. Thanks for the clarification!
for more information, see https://pre-commit.ci
|
Thanks @andrewwhitecdw for submitting PRs #3361 to #3379. I've reviewed them and I think I should make a few suggestions regarding the PR styling and CI testing.
Thanks for the contribution! |
This PR addresses the following issue in
transformer_engine/common/fused_attn/fused_attn.cpp: add missing NVTE_BHSD to qkv format to_string.Changes
transformer_engine/common/fused_attn/fused_attn.cpp: add missing NVTE_BHSD to qkv format to_string.Details
Tests
tests/test_qkv_format_to_string.cpp