[Mlir-commits] [mlir] e78ef93 - [MLIR] GPUToCUDA conversion: MC is only needed if NVPTX is enabled.

Stephen Neuendorffer llvmlistbot at llvm.org
Tue May 5 08:55:30 PDT 2020


Author: Stephen Neuendorffer
Date: 2020-05-05T08:55:17-07:00
New Revision: e78ef9385cab6b96c4e5da0e312aeadb85f933f4

URL: https://github.com/llvm/llvm-project/commit/e78ef9385cab6b96c4e5da0e312aeadb85f933f4
DIFF: https://github.com/llvm/llvm-project/commit/e78ef9385cab6b96c4e5da0e312aeadb85f933f4.diff

LOG: [MLIR] GPUToCUDA conversion: MC is only needed if NVPTX is enabled.

This patch conditionally links with MC

Added: 
    

Modified: 
    mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt b/mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt
index 98b52eb81552..4696dd65fa62 100644
--- a/mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt
+++ b/mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt
@@ -9,10 +9,12 @@ set(SOURCES
 if (MLIR_CUDA_CONVERSIONS_ENABLED)
  list(APPEND SOURCES "ConvertKernelFuncToCubin.cpp")
   set(NVPTX_LIBS
+    MC
     NVPTXCodeGen
     NVPTXDesc
     NVPTXInfo
   )
+
 endif()
 
 add_mlir_conversion_library(MLIRGPUtoCUDATransforms
@@ -24,7 +26,6 @@ add_mlir_conversion_library(MLIRGPUtoCUDATransforms
 
   LINK_COMPONENTS
   Core
-  MC
   ${NVPTX_LIBS}
 
   LINK_LIBS PUBLIC


        


More information about the Mlir-commits mailing list