Initialization and Version#
Initialization and Version
This section describes the initializtion and version functions of HIP runtime API.
This section describes the initializtion and version functions of HIP runtime API.
Explicitly initializes the HIP runtime.
- Parameters
-
[in] flags Initialization flag, should be zero.
Most HIP APIs implicitly initialize the HIP runtime. This API provides control over the timing of the initialization.
- Note
- Applications that use fork() should not initialize the HIP runtime before the fork when the child process will continue executing HIP code without an immediate exec(). Instead, the parent and child processes should initialize HIP independently after fork(). Inheriting HIP runtime state across fork() may lead to undefined behavior or initialization failures.
- Returns
hipSuccess,hipErrorInvalidValue