'How can I interact with NVIDIA's JIT compilation cache?

(Following Is NVIDIA's JIT compilation cache used when you don't use NVCC?)

NVIDIA's JIT compilation cache (which we find in ~/.nv/CompilationCache on Linux systems) has a somewhat opaque structure, with a non-textual index. I would like to be able to interact with, or manipulate, this cache:

  • Parse the index.
  • Determine if my program/kernel/PTX/etc is cached.
  • Read the cached data (e.g. as a cubin or some other way)
  • Add a new entry to the cache.

Is that possible (without reverse-engineering)?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source