Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/inductor/test_cpp_wrapper_hipify.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def test_hipify_aoti_driver_header(self) -> None:
}
"""
if torch.version.hip is not None:
expected = expected.replace("32*numWarps", "64*numWarps")
# Adjusting the warp size to GPU supported wavefront size on AMD GPU
prop = torch.cuda.get_device_properties(torch.cuda.current_device())
expected = expected.replace(
"32*numWarps", str(prop.warp_size) + "*numWarps"
)
result = maybe_hipify_code_wrapper(header, True)
self.assertEqual(result.rstrip(), expected.rstrip())

Expand Down