hipinit Interface Reference#
hipfort::hipinit Interface Reference
Explicitly initializes the HIP runtime. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hipinit_ (flags) |
Detailed Description
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
Member Function/Subroutine Documentation
◆ hipinit_()
| integer(kind(hipsuccess)) function hipfort::hipinit::hipinit_ | ( | integer(c_int), value | flags | ) |
The documentation for this interface was generated from the following file: