HIP: Heterogenous-computing Interface for Portability
|
#include <hip_runtime_api.h>
Public Attributes | |
hipMemLocationType | type |
Specifies the location type, which describes the meaning of id. | |
int | id |
Identifier for the provided location type hipMemLocationType . | |
Specifies a memory location.
To specify a gpu, set type = hipMemLocationTypeDevice
and set id = the gpu's device ID