cuda.bindings._v2.nvrtc.InstallHeadersFlag#

class cuda.bindings._v2.nvrtc.InstallHeadersFlag(value: int)#

Flags for install_bundled_headers().

SKIP_IF_EXISTS: 0

Skip installation if version marker exists and version matches. This is the default behavior when flags=0.

FORCE_OVERWRITE: 1

Clear existing directory contents before installation. Guarantees consistency by removing any existing files first.

NO_WAIT: 2

Return NVRTC_ERROR_BUSY immediately if installation is in progress by another process, instead of waiting for the lock. Can be combined with FORCE_OVERWRITE using bitwise OR. Do not wait for installation to complete.