From 92cb0ce8f814cd39ef4598fe074534cb787a9e78 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Sat, 6 Jun 2020 09:31:51 -0700 Subject: [PATCH] [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. --- mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp b/mlir/lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp index 5f922c8..37b0562 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::createConvertGpuLaunchFuncToGpuRuntimeCallsPass( StringRef gpuBinaryAnnotation) { + if (gpuBinaryAnnotation.empty()) + return std::make_unique(); return std::make_unique( gpuBinaryAnnotation); } -- 2.7.4