[Mlir-commits] [mlir] 92cb0ce - [mlir] Change to re-enable cuda-runner tests

Jacques Pienaar llvmlistbot at llvm.org
Sat Jun 6 09:34:36 PDT 2020


Author: Jacques Pienaar
Date: 2020-06-06T09:31:51-07:00
New Revision: 92cb0ce8f814cd39ef4598fe074534cb787a9e78

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

LOG: [mlir] Change to re-enable cuda-runner tests

mlir-cuda-runner tests were failing post
https://reviews.llvm.org/D80676, small change to get those passing
again. More cleanup may be needed post.

Added: 
    

Modified: 
    mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp b/mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp
index 5f922c84a9a1..37b056263ab4 100644
--- a/mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp
+++ b/mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp
@@ -464,6 +464,8 @@ void GpuLaunchFuncToGpuRuntimeCallsPass::translateGpuLaunchCalls(
 std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>>
 mlir::createConvertGpuLaunchFuncToGpuRuntimeCallsPass(
     StringRef gpuBinaryAnnotation) {
+  if (gpuBinaryAnnotation.empty())
+    return std::make_unique<GpuLaunchFuncToGpuRuntimeCallsPass>();
   return std::make_unique<GpuLaunchFuncToGpuRuntimeCallsPass>(
       gpuBinaryAnnotation);
 }


        


More information about the Mlir-commits mailing list