blob: 6840bfd3cca6dc9cccec4609b9c353d4a074be6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
result code = -1
standard error = {
tests/diagnostics/autodiff-data-flow.slang(15): error 41020: derivative cannot be propagated through call to non-forward-differentiable function `nonDiff`, use 'no_diff' to clarify intention.
val = nonDiff(x * 2.0f);
^
tests/diagnostics/autodiff-data-flow.slang(28): error 30510: loops inside a differentiable function need to provide either '[MaxIters(n)]' or '[ForceUnroll]' attribute.
for (int i = 0; i < 5; i++) // Not ok, we can't infer the loop iterations because the body modifies induction var.
^~~
}
standard output = {
}
|