Skip to content

Commit 984c98b

Browse files
cthifacebook-github-bot
authored andcommitted
Fix AMD test running on nvidia acidentally (#4844)
Summary: Pull Request resolved: #4844 X-link: facebookresearch/FBGEMM#1873 as titled, missed this originally Reviewed By: q10 Differential Revision: D82043068 fbshipit-source-id: 8440759c3c3c8ad5f5a7bbe75ee501180ce79e95
1 parent 0d30f0d commit 984c98b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fbgemm_gpu/experimental/gen_ai/test/quantize/quantize_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,9 @@ def bf16_loopover_validate(
11661166
N=st.sampled_from([256, 1024, 6144]),
11671167
K=st.sampled_from([256, 512, 3584]),
11681168
use_cudagraph=st.booleans(),
1169-
mode=st.sampled_from(["stacked", "torch_2d3d"]),
1169+
mode=st.sampled_from(
1170+
["stacked"] + (["torch_2d3d"] if torch.version.hip else [])
1171+
),
11701172
)
11711173
def test_grouped_gemm_2d_3d(
11721174
self,

0 commit comments

Comments
 (0)