hipextmallocwithflags Interface Reference#
hipfort::hipextmallocwithflags Interface Reference
  Allocate memory on the default accelerator. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hipextmallocwithflags_ (ptr, sizeBytes, flags) | 
Detailed Description
Allocate memory on the default accelerator.
- Parameters
 - 
  
[out] ptr Pointer to the allocated memory [in] size Requested memory size [in] flags Type of memory allocation  
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- Returns
 - hipSuccess, hipErrorOutOfMemory, hipErrorInvalidValue (bad context, null *ptr)
 
- See also
 - hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hipHostMalloc
 
Member Function/Subroutine Documentation
◆ hipextmallocwithflags_()
| integer(kind(hipsuccess)) function hipfort::hipextmallocwithflags::hipextmallocwithflags_ | ( | type(c_ptr) | ptr, | 
| integer(c_size_t), value | sizeBytes, | ||
| integer(c_int), value | flags | ||
| ) | 
The documentation for this interface was generated from the following file: