Skip to content

Commit

Permalink
Fix intermediate blascall (#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Jun 30, 2024
1 parent 9e02236 commit 8cc86db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions enzyme/tools/enzyme-tblgen/blas-tblgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,12 @@ void rev_call_arg(bool forward, DagInit *ruleDag, const TGPattern &pattern,
<< " }\n\n";
os << " auto cubcall = cast<CallInst>(Builder2.CreateCall(derivcall_"
<< dfnc_name << ", marg, Defs));\n";
os << " SmallVector<Value*, 1>(1, cublasv2 ? "
os << " SmallVector<Value*, 1> resvec(1, cublasv2 ? "
<< " (Value*)Builder2.CreateLoad(fpType, marg[marg.size()-1]) : "
"(Value*)cubcall);\n";
"(Value*)cubcall);\n"
<< " resvec[0] = to_blas_fp_callconv(Builder2, resvec[0], "
"byRefFloat, blasFPType, allocationBuilder, \"blascall\");\n"
<< " resvec;\n";
os << " })\n";
return;
}
Expand Down

0 comments on commit 8cc86db

Please sign in to comment.