简体   繁体   中英

What is the role of CUDA_CACHE_DISABLE=1? Please explain in detail

I saw some codes using CUDA_CACHE_DISABLE=1 in run.sh file.

But there is no thorough explanation on website.

What I get from the online document is something abstact, like below:

Disables caching (when set to 1) or enables caching (when set to 0) for just-in-time-compilation. When disabled, no binary code is added to or retrieved from the cache.

But what is binary cache and retrieval?

Where can be better with this command, better utilization of GPU-memory or something else? Thanks in advance.

It is explained for example here by Nvidia .

In short: CUDA code has to be recompiled for every major new GPU architecture. Binaries of CUDA code typically contain PTX as an intermediate representation for this. The compilation results will be cached.

Disabling cache will affect startup time and disk memory usage but not runtime performance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM