This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-tirx.git


The following commit(s) were added to refs/heads/main by this push:
     new c27d8ffa4 [FIX] Correct the expected ROCm mtriple in 
test_target_from_device_rocm (#264)
c27d8ffa4 is described below

commit c27d8ffa474ecf1de36b8947a6aba1f87fa4ed71
Author: Ravi Gupta <[email protected]>
AuthorDate: Wed Nov 25 11:54:51 2026 -0800

    [FIX] Correct the expected ROCm mtriple in test_target_from_device_rocm 
(#264)
    
    The test expected "amdgcn-and-amdhsa-hcc" (typo for "amd"); the target
    sets
    "amdgcn-amd-amdhsa-hcc". The test only runs on machines with a ROCm
    device, so CI
    did not catch it. Verified on gfx1151.
---
 tests/python/target/test_target.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/python/target/test_target.py 
b/tests/python/target/test_target.py
index fe633d1cb..2a01e14d3 100644
--- a/tests/python/target/test_target.py
+++ b/tests/python/target/test_target.py
@@ -388,7 +388,7 @@ def test_target_from_device_rocm(input_form):
         dev = tvm_tirx.rocm()
         target = Target.from_device("rocm" if input_form == "string" else dev)
         assert target.kind.name == "rocm"
-        assert target.attrs["mtriple"] == "amdgcn-and-amdhsa-hcc"
+        assert target.attrs["mtriple"] == "amdgcn-amd-amdhsa-hcc"
         assert target.attrs["max_threads_per_block"] == 
dev.max_threads_per_block
         assert int(target.attrs["max_shared_memory_per_block"]) == 
dev.max_shared_memory_per_block
         assert int(target.attrs["thread_warp_size"]) == dev.warp_size

Reply via email to