Skip to content

Commit c6e7b4a

Browse files
authored
[flang][cuda][NFC] Add kernel name in translation error (#123987)
1 parent 213e03c commit c6e7b4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Optimizer/Dialect/CUF/CUFToLLVMIRTranslation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ LogicalResult registerKernel(cuf::RegisterKernelOp op,
7171
llvm::Function *fctSym =
7272
moduleTranslation.lookupFunction(op.getKernelName().str());
7373
if (!fctSym)
74-
return op.emitError() << "Couldn't find kernel name symbol";
74+
return op.emitError() << "Couldn't find kernel name symbol: "
75+
<< op.getKernelName().str();
7576
builder.CreateCall(fct, {modulePtr, fctSym,
7677
getOrCreateFunctionName(
7778
module, builder, op.getKernelModuleName().str(),

0 commit comments

Comments
 (0)