[PATCH] D80676: [mlir][gpu] Introduce mlir-rocm-runner.

Zhuoran Yin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 13:45:42 PDT 2020


jerryyin added inline comments.


================
Comment at: mlir/tools/mlir-rocm-runner/CMakeLists.txt:72
+    lldELF
+    LLVMCore
+    LLVMLTO
----------------
When building with the following option: `-DBUILD_SHARED_LIBS=ON -DLLVM_BUILD_LLVM_DYLIB=ON`

Build failed with linker issues like below:



```
mlir-rocm-runner.cpp:(.text.startup.main+0x5e): undefined reference to `LLVMInitializeNVPTXTargetInfo' 
mlir-rocm-runner.cpp:(.text.startup.main+0x63): undefined reference to `LLVMInitializeAMDGPUTargetInfo'
mlir-rocm-runner.cpp:(.text.startup.main+0x6d): undefined reference to `LLVMInitializeNVPTXTargetMC'
mlir-rocm-runner.cpp:(.text.startup.main+0x72): undefined reference to `LLVMInitializeAMDGPUTargetMC'
mlir-rocm-runner.cpp:(.text.startup.main+0x86): undefined reference to `LLVMInitializeAMDGPUTargetInfo'
mlir-rocm-runner.cpp:(.text.startup.main+0x8b): undefined reference to `LLVMInitializeAMDGPUTargetMC'
```

Needs the following targets: LLVMAMDGPUInfo, LLVMAMDGPUDesc, LLVMNVPTXInfo, LLVMNVPTXDesc.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80676/new/

https://reviews.llvm.org/D80676





More information about the llvm-commits mailing list