We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a0cd6 commit 3320249Copy full SHA for 3320249
mlir/lib/Target/LLVM/NVVM/Target.cpp
@@ -267,9 +267,12 @@ NVPTXSerializer::compileToBinary(const std::string &ptxCode) {
267
std::optional<std::string> ptxasCompiler = findTool("ptxas");
268
if (!ptxasCompiler)
269
return std::nullopt;
270
- std::optional<std::string> fatbinaryTool = findTool("fatbinary");
271
- if (createFatbin && !fatbinaryTool)
272
- return std::nullopt;
+ std::optional<std::string> fatbinaryTool;
+ if (createFatbin) {
+ fatbinaryTool = findTool("fatbinary");
273
+ if (!fatbinaryTool)
274
+ return std::nullopt;
275
+ }
276
Location loc = getOperation().getLoc();
277
278
// Base name for all temp files: mlir-<module name>-<target triple>-<chip>.
0 commit comments