summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/autodiff-data-flow-2.slang.expected
blob: 725a27c9cbeabd2f2c6d5eefcbbe2750ff67a1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
result code = -1
standard error = {
tests/diagnostics/autodiff-data-flow-2.slang(17): error 41020: derivative cannot be propagated through call to non-backward-differentiable function `f`, use 'no_diff' to clarify intention.
    float val = f(x + 1); // Error: f must also be backward-differentiable
                 ^
tests/diagnostics/autodiff-data-flow-2.slang(29): error 30510: loops inside a differentiable function need to provide either '[MaxIters(n)]' or '[ForceUnroll]' attribute.
    for (int i = 0; i < (int)x; i++)
    ^~~
}
standard output = {
}