Skip to content

Commit

Permalink
Attempt fix of memory errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 16, 2023
1 parent aea349c commit 2211ae2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enzyme/Enzyme/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ void callMemcpyStridedBlas(llvm::IRBuilder<> &B, llvm::Module &M, BlasInfo blas,
llvm::ArrayRef<llvm::Value *> args,
llvm::Type *copy_retty,
llvm::ArrayRef<llvm::OperandBundleDef> bundles) {
auto copy_name = Twine(blas.prefix) + blas.floatType + "copy" + blas.suffix;
Twine copy_name = Twine(blas.prefix) + blas.floatType + "copy" + blas.suffix;

SmallVector<Type *, 1> tys;
for (auto arg : args)
Expand All @@ -655,7 +655,7 @@ void callMemcpyStridedBlas(llvm::IRBuilder<> &B, llvm::Module &M, BlasInfo blas,
void callMemcpyStridedLapack(llvm::IRBuilder<> &B, llvm::Module &M,
BlasInfo blas, llvm::ArrayRef<llvm::Value *> args,
llvm::ArrayRef<llvm::OperandBundleDef> bundles) {
auto copy_name = Twine(blas.prefix) + blas.floatType + "lacpy" + blas.suffix;
Twine copy_name = Twine(blas.prefix) + blas.floatType + "lacpy" + blas.suffix;

SmallVector<Type *, 1> tys;
for (auto arg : args)
Expand All @@ -674,7 +674,7 @@ void callSPMVDiagUpdate(IRBuilder<> &B, Module &M, BlasInfo blas,
ArrayRef<OperandBundleDef> bundles, bool byRef,
bool julia_decl) {
// add spmv diag update call if not already present
auto fnc_name = Twine("__enzyme_spmv_diag") + blas.floatType + blas.suffix;
Twine fnc_name = Twine("__enzyme_spmv_diag") + blas.floatType + blas.suffix;

// spmvDiagHelper(uplo, n, alpha, x, incx, ya, incy, APa)
auto FDiagUpdateT = FunctionType::get(
Expand Down

0 comments on commit 2211ae2

Please sign in to comment.