[PATCH] D80739: [mlir][GPU] Link relevant LLVM components in GPUCommon instead of test
Alex Zinenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 11:33:55 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG72ede60b75ee: [mlir][GPU] Link relevant LLVM components in GPUCommon instead of test (authored by ftynse).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80739/new/
https://reviews.llvm.org/D80739
Files:
mlir/lib/Conversion/GPUCommon/CMakeLists.txt
mlir/test/lib/Transforms/CMakeLists.txt
Index: mlir/test/lib/Transforms/CMakeLists.txt
===================================================================
--- mlir/test/lib/Transforms/CMakeLists.txt
+++ mlir/test/lib/Transforms/CMakeLists.txt
@@ -1,21 +1,3 @@
-if (MLIR_CUDA_CONVERSIONS_ENABLED)
- set(NVPTX_LIBS
- MC
- NVPTXCodeGen
- NVPTXDesc
- NVPTXInfo
- )
-endif()
-
-if (MLIR_ROCM_CONVERSIONS_ENABLED)
- set(AMDGPU_LIBS
- MC
- AMDGPUCodeGen
- AMDGPUDesc
- AMDGPUInfo
- )
-endif()
-
# Exclude tests from libMLIR.so
add_mlir_library(MLIRTestTransforms
TestAllReduceLowering.cpp
@@ -50,10 +32,6 @@
MLIRStandardOpsIncGen
MLIRTestVectorTransformPatternsIncGen
- LINK_COMPONENTS
- ${AMDGPU_LIBS}
- ${NVPTX_LIBS}
-
LINK_LIBS PUBLIC
MLIRAffineOps
MLIRAnalysis
Index: mlir/lib/Conversion/GPUCommon/CMakeLists.txt
===================================================================
--- mlir/lib/Conversion/GPUCommon/CMakeLists.txt
+++ mlir/lib/Conversion/GPUCommon/CMakeLists.txt
@@ -1,3 +1,21 @@
+if (MLIR_CUDA_CONVERSIONS_ENABLED)
+ set(NVPTX_LIBS
+ MC
+ NVPTXCodeGen
+ NVPTXDesc
+ NVPTXInfo
+ )
+endif()
+
+if (MLIR_ROCM_CONVERSIONS_ENABLED)
+ set(AMDGPU_LIBS
+ MC
+ AMDGPUCodeGen
+ AMDGPUDesc
+ AMDGPUInfo
+ )
+endif()
+
add_mlir_conversion_library(MLIRGPUtoGPURuntimeTransforms
ConvertLaunchFuncToRuntimeCalls.cpp
ConvertKernelFuncToBlob.cpp
@@ -8,6 +26,8 @@
LINK_COMPONENTS
Core
+ ${AMDGPU_LIBS}
+ ${NVPTX_LIBS}
LINK_LIBS PUBLIC
MLIRGPU
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80739.266968.patch
Type: text/x-patch
Size: 1505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/f54d2432/attachment.bin>
More information about the llvm-commits
mailing list