pub unsafe extern "C" fn cutensorHandleWritePlanCacheToFile(
handle: cutensorHandle_t,
filename: *const c_char,
) -> cutensorStatus_tExpand description
Writes the Plan-Cache (that belongs to the provided handle) to file.
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
cutensorStatus_t::CUTENSOR_STATUS_INVALID_VALUE: if the no cache has been attached.cutensorStatus_t::CUTENSOR_STATUS_IO_ERROR: if the file cannot be written to.cutensorStatus_t::CUTENSOR_STATUS_NOT_INITIALIZED: if the handle is not initialized.cutensorStatus_t::CUTENSOR_STATUS_SUCCESS: The operation completed successfully.