returns device type attributes
More...
- Return values
-
- Parameters
-
handle | opaque handle for device, obtained through PAPI_enum_dev_type |
attr | device type attribute to query |
val | value of the requested device type attribute |
- Example:
typedef enum {
typedef enum {
int id;
switch (id) {
break;
break;
break;
default: ...
}
}
static papi_handle_t handle
returns handle of next device type
returns device type attributes
#define PAPI_DEV_TYPE_ENUM__ALL
#define PAPI_DEV_TYPE_ID__CUDA
#define PAPI_DEV_TYPE_ATTR__INT_PAPI_ID
#define PAPI_DEV_TYPE_ATTR__INT_COUNT
#define PAPI_DEV_TYPE_ATTR__INT_VENDOR_ID
#define PAPI_DEV_TYPE_ATTR__CHAR_NAME
#define PAPI_DEV_TYPE_ID__CPU
#define PAPI_DEV_TYPE_ATTR__CHAR_STATUS
#define PAPI_DEV_TYPE_ID__ROCM
PAPI_get_dev_type_attr() allows the user to query all device type attributes. It takes a device type handle, returned by PAPI_enum_dev_type, and an attribute to be queried for the device type and returns the attribute value.
- Bug:
- none known
- See also
- PAPI_enum_dev_type
-
PAPI_get_dev_attr
The documentation for this class was generated from the following file: