CUDA and CCache - compilation errors


I just installed ccache for a faster compiling, but nvcc seems to have problems with it:

Catastrophic error: could not open source file


1 catastrophic error detected in the compilation of "/tmp/tmpxft_000050a6_00000000-2.ii".

Compilation terminated.

rm: remove write-protected regular file `/tmp/tmpxft_000050a6_00000000-2.ii'? y

Is their any solution except disabling ccache when calling nvcc?



Currently, only gcc is supported. We are currently reviewing other compiler options.

Isn’t ccache calling gcc, anyway?

Indirectly, sure, however clearly more is involved than just calling gcc.

Update: CCache maintainer reports that CCache currently supports CUDA with NVCC.