Skip to content

Commit

Permalink
Fix cublas transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 26, 2023
1 parent de562f2 commit 6eb2e19
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions enzyme/Enzyme/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2637,10 +2637,11 @@ llvm::Value *transpose(llvm::IRBuilder<> &B, llvm::Value *V, bool byRef,
}

// cblas
return B.CreateSelect(
B.CreateICmpEQ(V, ConstantInt::get(V->getType(), 111)),
ConstantInt::get(V->getType(), 112),
ConstantInt::get(V->getType(), 111));
if (!cublas)
return B.CreateSelect(
B.CreateICmpEQ(V, ConstantInt::get(V->getType(), 111)),
ConstantInt::get(V->getType(), 112),
ConstantInt::get(V->getType(), 111));
}

if (byRef) {
Expand Down

0 comments on commit 6eb2e19

Please sign in to comment.