[][src]Function onednn_sys::dnnl_set_jit_profiling_jitdumpdir

pub unsafe extern "C" fn dnnl_set_jit_profiling_jitdumpdir(
    dir: *const c_char
) -> dnnl_status_t

Sets JIT dump output path. Only applicable to Linux and is only used when profiling flags have DNNL_JIT_PROFILE_LINUX_PERF bit set.

After the first JIT kernel is generated, the jitdump output will be placed into temporary directory created using the mkdtemp template 'dir/.debug/jit/dnnl.XXXXXX'.

@sa @ref dev_guide_profilers

@note This setting overrides JITDUMPDIR environment variable. If JITDUMPDIR is not set, and this function is never called, the path defaults to HOME. Passing NULL reverts the value to default.

@note The directory is accessed only when the first JIT kernel is being created. JIT profiling will be disabled in case of any errors accessing or creating this directory.

@param dir JIT dump output path. @returns #dnnl_success/#dnnl::status::success if the output directory was set correctly and an error status otherwise. @returns #dnnl_unimplemented/#dnnl::status::unimplemented on Windows.