Skip to content

Commit 2d1a06f

Browse files
committed
dinput -> output.
1 parent 40f69a9 commit 2d1a06f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Enzyme/Standalone/EnzymeSparse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ __attribute__((always_inline)) static T ident_load(int64_t idx, size_t i)
8585

8686
// Vector-valued function to differentiate
8787
template <typename T>
88-
__attribute__((always_inline)) static void f(size_t N, T* input, T* dinput)
88+
__attribute__((always_inline)) static void f(size_t N, T* input, T* output)
8989
{
9090
for (size_t i = 0; i < N; i++)
9191
{
92-
dinput[i] = input[i] * input[i];
92+
output[i] = input[i] * input[i];
9393
}
9494
}
9595

0 commit comments

Comments
 (0)