summaryrefslogtreecommitdiffstats
path: root/tests/autodiff/warn-on-shared-memory-access.slang
Commit message (Collapse)AuthorAge
* Enable CUDA Test Enablement - Batch 1: Autodiff Tests (1-16) (#8139)Harsh Aggarwal (NVIDIA)2025-08-18
|
* Treat global variables and parameters as non-differentiable when checking ↵Sai Praveen Bangaru2024-07-08
derivative data-flow (#4526) Global parameters are by-default not differentiable (even if they are of a differentiable type), because our auto-diff passes do not touch anything outside of function bodies. The solution is to use wrapper objects with differentiable getter/setter methods (and we should provide a few such objects in the stdlib). Fixes: #3289 This is a potentially breaking change: User code that was previously working with global variables of a differentiable type will now throw an error (previously the gradient would be dropped without warning). The solution is to use `detach()` to keep same behavior as before or rewrite the access using differentiable getter/setter methods.