cuda.bindings._v2.nvrtc.remove_bundled_headers#

cuda.bindings._v2.nvrtc.remove_bundled_headers(install_path) → bytes#

nvrtcRemoveBundledHeaders removes previously installed bundled headers.

This function removes the headers installed by nvrtcInstallBundledHeaders, helping users manage disk space. It recursively removes all files and subdirectories within the installation directory.

Parameters:

install_path (str) – Path where headers were previously installed. Must be the same path used with nvrtcInstallBundledHeaders.

Returns:

Optional pointer to receive detailed error message on

failure. If non-NULL, *error_log will be set to point to a string describing the error cause. Note: subsequent API calls from the same thread may overwrite this message. May be NULL if error details are not needed.

Return type:

bytes

Note

This function will remove ALL contents of the specified directory, not just files installed by NVRTC. Use with caution.

See also

nvrtcRemoveBundledHeaders