<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/autodiff/warn-on-shared-memory-access.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-08-18T05:16:47+00:00</updated>
<entry>
<title>Enable CUDA Test Enablement - Batch 1: Autodiff Tests (1-16)  (#8139)</title>
<updated>2025-08-18T05:16:47+00:00</updated>
<author>
<name>Harsh Aggarwal (NVIDIA)</name>
<email>haaggarwal@nvidia.com</email>
</author>
<published>2025-08-18T05:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=c3df36043c67a94ea51cd7b1ce10a84e52f8d744'/>
<id>urn:sha1:c3df36043c67a94ea51cd7b1ce10a84e52f8d744</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Treat global variables and parameters as non-differentiable when checking derivative data-flow (#4526)</title>
<updated>2024-07-08T22:48:08+00:00</updated>
<author>
<name>Sai Praveen Bangaru</name>
<email>31557731+saipraveenb25@users.noreply.github.com</email>
</author>
<published>2024-07-08T22:48:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=4a49769c5b6b351b3c1c9a9968b3926839504606'/>
<id>urn:sha1:4a49769c5b6b351b3c1c9a9968b3926839504606</id>
<content type='text'>
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.</content>
</entry>
</feed>
