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

Wen-Heng (Jack) Chung via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 13:46:00 PDT 2020


whchung marked 2 inline comments as done.
whchung added inline comments.


================
Comment at: mlir/tools/mlir-rocm-runner/CMakeLists.txt:72
+    lldELF
+    LLVMCore
+    LLVMLTO
----------------
jerryyin wrote:
> 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.
@jerryyin The issue should be no more should you adopt D80739.


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