hippointergetattributes Interface Reference#
hipfort::hippointergetattributes Interface Reference
Returns attributes for the specified pointer. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hippointergetattributes_ (attributes, ptr) |
Detailed Description
Returns attributes for the specified pointer.
- Parameters
-
[out] attributes attributes for the specified pointer [in] ptr pointer to get attributes for
The output parameter 'attributes' has a member named 'type' that describes what memory the pointer is associated with, such as device memory, host memory, managed memory, and others. Otherwise, the API cannot handle the pointer and returns hipErrorInvalidValue.
- Note
- The unrecognized memory type is unsupported to keep the HIP functionality backward compatibility due to
hipMemoryTypeenum values.
- Returns
hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
- Note
- The current behavior of this HIP API corresponds to the CUDA API before version 11.0.
- See also
- hipPointerGetAttribute
Member Function/Subroutine Documentation
◆ hippointergetattributes_()
| integer(kind(hipsuccess)) function hipfort::hippointergetattributes::hippointergetattributes_ | ( | type(hippointerattribute_t) | attributes, |
| type(c_ptr), value | ptr | ||
| ) |
The documentation for this interface was generated from the following file: