[Mlir-commits] [mlir] 2e0e00e - [mlir][gpu] Fallback to JIT compilation
Guray Ozen
llvmlistbot at llvm.org
Mon Jul 24 06:11:10 PDT 2023
Author: Guray Ozen
Date: 2023-07-24T15:11:05+02:00
New Revision: 2e0e00ed841951e358a85a871647be9b3a622f51
URL: https://github.com/llvm/llvm-project/commit/2e0e00ed841951e358a85a871647be9b3a622f51
DIFF: https://github.com/llvm/llvm-project/commit/2e0e00ed841951e358a85a871647be9b3a622f51.diff
LOG: [mlir][gpu] Fallback to JIT compilation
Recent change introduces compilation with ptxas compiler. The change is important to be able to different versions of ptxas compiler without changing the compiler.
It causes some failures in builtbot. This change adds fallback mechanism to JIt compilation that is original path.
Differential Revision: https://reviews.llvm.org/D156096
Added:
Modified:
mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp b/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
index 17476016de8ce7..ec0625c65d9f44 100644
--- a/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
+++ b/mlir/lib/Dialect/GPU/Transforms/SerializeToCubin.cpp
@@ -257,8 +257,7 @@ SerializeToCubinPass::serializeISA(const std::string &isa) {
return std::make_unique<std::vector<char>>(
maybeCubinImage.value().begin(), maybeCubinImage.value().end());
}
- emitError(loc) << message;
- return {};
+ llvm::errs() << message << ". It fallsback to JIT compilation.\n";
}
// Fallback to JIT compilation if ptxas fails.
More information about the Mlir-commits
mailing list