1#ifndef __ROC_COMMON_H__
2#define __ROC_COMMON_H__
15#ifndef PAPI_ROCM_MAX_DEV_COUNT
16#define PAPI_ROCM_MAX_DEV_COUNT (32)
static nvmlDevice_t * devices
Return codes and api definitions.
int rocc_dev_get_map(rocc_dev_get_map_cb cb, uint64_t *events_id, int num_events, rocc_bitmap_t *bitmap)
int rocc_dev_check(rocc_bitmap_t bitmap, int i)
int(* rocc_dev_get_map_cb)(uint64_t event_id, int *dev_id)
hsa_status_t(* hsa_status_string_p)(hsa_status_t, const char **)
hsa_status_t(* hsa_queue_destroy_p)(hsa_queue_t *)
char error_string[PAPI_MAX_STR_LEN]
int rocc_dev_acquire(rocc_bitmap_t bitmap)
int rocc_dev_get_count(rocc_bitmap_t bitmap, int *num_devices)
device_table_t * device_table_p
hsa_status_t(* hsa_init_p)(void)
hsa_status_t(* hsa_agent_get_info_p)(hsa_agent_t, hsa_agent_info_t, void *)
int rocc_dev_get_agent_id(hsa_agent_t agent, int *dev_id)
int rocc_dev_get_id(rocc_bitmap_t bitmap, int dev_count, int *device_id)
int rocc_err_get_last(const char **error_string)
hsa_status_t(* hsa_system_get_info_p)(hsa_system_info_t, void *)
hsa_status_t(* hsa_iterate_agents_p)(hsa_status_t(*)(hsa_agent_t, void *), void *)
#define PAPI_ROCM_MAX_DEV_COUNT
hsa_status_t(* hsa_shut_down_p)(void)
int rocc_dev_set(rocc_bitmap_t *bitmap, int i)
int rocc_thread_get_id(unsigned long *tid)
int rocc_dev_release(rocc_bitmap_t bitmap)