This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

hipmallocarray Interface Reference

hipmallocarray Interface Reference#

HIPFORT API Reference: hipfort::hipmallocarray Interface Reference
hipfort::hipmallocarray Interface Reference

Allocate an array on the device. More...

Public Member Functions

integer(kind(hipsuccess)) function hipmallocarray_ (array, desc, width, height, flags)
 

Detailed Description

Allocate an array on the device.

Parameters
[out]arrayPointer to allocated array in device memory
[in]descRequested channel format
[in]widthRequested array allocation width
[in]heightRequested array allocation height
[in]flagsRequested properties of allocated array
Returns
hipSuccess, hipErrorOutOfMemory
See also
hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree

Member Function/Subroutine Documentation

◆ hipmallocarray_()

integer(kind(hipsuccess)) function hipfort::hipmallocarray::hipmallocarray_ ( type(c_ptr)  array,
type(c_ptr)  desc,
integer(c_size_t), value  width,
integer(c_size_t), value  height,
integer(c_int), value  flags 
)

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