Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/2.5] Fixed string comparison in test_cpp_wrapper_hipify #1760

Open
wants to merge 1 commit into
base: release/2.5
Choose a base branch
from
Open
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