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

hipMemLocation Struct Reference

hipMemLocation Struct Reference#

HIP Runtime API Reference: hipMemLocation Struct Reference
hipMemLocation Struct Reference

#include <hip_runtime_api.h>

Data Fields

hipMemLocationType type
 Specifies the location type, which describes the meaning of id. More...
 
int id
 Identifier for the provided location type hipMemLocationType. More...
 

Detailed Description

Specifies a memory location.

To specify a gpu, set type = hipMemLocationTypeDevice and set id = the gpu's device ID

Field Documentation

◆ id

int hipMemLocation::id

Identifier for the provided location type hipMemLocationType.

◆ type

hipMemLocationType hipMemLocation::type

Specifies the location type, which describes the meaning of id.


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/develop/include/hip/hip_runtime_api.h