Skip to content

Commit

Permalink
add blas copy support (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuseZ4 authored Sep 20, 2023
1 parent 562b7a8 commit 53a15ad
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions enzyme/Enzyme/BlasDerivatives.td
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ def dot : CallBlasPattern<(Op $n, $x, $incx, $y, $incy),
// >;


// def copy : CallBlasPattern<(Op $n, $x, $incx, $y, $incy),
// ["y"],[len, vinc, vinc],
// [
// (noop),// copy moves x into y, so x is never modified.
// (b<"axpy"> $n, Constant<"1.0">, adj<"y">, $incy, adj<"x">, $incx)
// ]
// >;
def copy : CallBlasPattern<(Op $n, $x, $incx, $y, $incy),
["y"],[len, vinc<["n"]>, vinc<["n"]>],
[
(noop),// copy moves x into y, so x is never modified.
(b<"axpy"> $n, Constant<"1.0">, adj<"y">, $incy, adj<"x">, $incx)
]
>;

// def swap : CallBlasPattern<(Op $n, $x, $incx, $y, $incy),
// ["x","y"],[len, vinc, vinc],
Expand Down

0 comments on commit 53a15ad

Please sign in to comment.