Skip to main content

cutensorWriteKernelCacheToFile

Function cutensorWriteKernelCacheToFile 

Source
pub unsafe extern "C" fn cutensorWriteKernelCacheToFile(
    handle: cutensorHandle_t,
    filename: *const c_char,
) -> cutensorStatus_t
Expand description

Writes the —per library— kernel cache to file.

Writes the just-in-time compiled kernels to the provided file (those kernels belong to the library—not to the handle).

Remark

non-blocking, no reentrant, and thread-safe.

§Parameters

  • handle: Opaque handle holding cuTENSOR’s library context.
  • filename: Specifies the filename (including the absolute path) to the file that should hold all the cache information. Warning: an existing file will be overwritten.

§Return value