Hi, currently I’m trying to compile the sample model with rocm. I use the model from the document Compiling and Optimizing a Model with TVMC¶, and just simply modified the target option from “llvm” to “rocm”, and I got some LLVM error:
TVMError: LLVM module verification failed with the following errors: Instruction does not dominate all uses! %29 = call i32 @llvm.amdgcn.workitem.id.x() %83 = icmp slt i32 %29, 2 Instruction does not dominate all uses! %29 = call i32 @llvm.amdgcn.workitem.id.x() %97 = mul nsw i32 %29, 4 Instruction does not dominate all uses! %29 = call i32 @llvm.amdgcn.workitem.id.x() %110 = mul nsw i32 %29, 4 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.1 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.2 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.3 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.4 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.5 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.6 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.7 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.8 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.9 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.10 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.11 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.12 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.13 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.14 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.15 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.16 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.17 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.18 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.19 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.20 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.21 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.22 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.23 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.24 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.25 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.26 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.27 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.28 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.29 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.30 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.31 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.32 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.33 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.34 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.35 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.36 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.37 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.38 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.39 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.40 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.41 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.42 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.43 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.44 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.45 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.46 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.47 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.48 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.49 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.50 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.51 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.52 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.53 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.54 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.55 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.56 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.57 Global is external, but doesn't have external or weak linkage! ptr addrspace(3) @shmem.58
Anyone know how to solve this issue?