hipmemcreate Interface Reference

hipmemcreate Interface Reference#

HIPFORT API Reference: hipfort::hipmemcreate Interface Reference
hipfort::hipmemcreate Interface Reference

Creates a memory handle for the allocation described by the properties and given size. More...

Public Member Functions

integer(kind(hipsuccess)) function hipmemcreate_ (handle, mysize, prop, flags)
 

Detailed Description

Creates a memory handle for the allocation described by the properties and given size.

Parameters
[out]handle- value of the returned handle.
[in]size- size of the allocation.
[in]prop- properties of the allocation.
[in]flags- currently unused, must be zero.
Returns
hipSuccess, hipErrorInvalidValue, hipErrorNotSupported

This API creates a memory allocation on the target device specified through the prop structure. The prop allocation type must be specified as either hipMemAllocationTypePinned or hipMemAllocationTypeUncached. The prop location type must be specified as hipMemLocationTypeDevice or hipMemLocationTypeHost. Any other value results in hipErrorInvalidValue.

Note
This API is implemented on Linux and is under development on Microsoft Windows.

Member Function/Subroutine Documentation

◆ hipmemcreate_()

integer(kind(hipsuccess)) function hipfort::hipmemcreate::hipmemcreate_ ( type(c_ptr)  handle,
integer(c_size_t), value  mysize,
type(hipmemallocationprop prop,
integer(c_int64_t), value  flags 
)

The documentation for this interface was generated from the following file: