Environment variables CUDA_CACHE_PATH for windows

Reading the doc about environment variables CUDA_CACHE_PATH for windows and cuda toolkit 12.5 is %APPDATA%\NVIDIA\ComputeCache but on my windows machine it is C:\Users\laurent\AppData\Roaming\NVIDIA\ComputeCache Is Roaming missing or my install is wrong?

1 Like

Actually, neither is the case. Since the Windows 2000 era at the very least (quite possibly longer, but those days are far too small in my mental rear-view mirror to still be visible) the *AppData environment variables for Windows shake out like this:

Variable Name Scope Expands to
%APPDATA% User β€œ%USERPROFILE%\AppData\Roaming”
%LOCALAPPDATA% User β€œ%USERPROFILE%\AppData\Local”
%ALLUSERSAPPDATA% Machine β€œ%ProgramData%”
(whose default value is itself β€œ%SystemDrive%\ProgramData”)

One of the biggest unprosecuted crimes of our era remains the failure of Microsoft to include some convenient link somewhere in that Environment Variables modal window we’ve all used for decades that would open this essential single source of truth for their environment variables. As you can see, though, the variable is correct as-is, since the Roaming side of a user’s AppData folder has always been the implicit default, and this, included as part of the unadorned %APPDATA% variable. Cheers.

Edit: Switch from prose presentation to tabular format for ease of information consumption.