99 #include <lib/prof-lean/atomic.h> 105 #endif // ENABLE_CUDA 108 #define Cuda_RTcall(fn) cudaRuntimeFunctionPointer[fn ## Enum].fn ## Real 109 #define Cuda_Dcall(fn) cuDriverFunctionPointer[fn ## Enum].fn ## Real 146 TMSG(CPU_GPU_BLAME_CTL,
"setting up CPU_GPU_BLAME");
155 TMSG(CPU_GPU_BLAME_CTL,
"thread init");
161 TMSG(CPU_GPU_BLAME_CTL,
"thread action (noop)");
167 TMSG(CPU_GPU_BLAME_CTL,
"starting CPU_GPU_BLAME");
169 EMSG(
"Either pass -e WALLCLOCK or -e REALTIME to enable CPU_GPU_BLAME");
178 TMSG(CPU_GPU_BLAME_CTL,
"thread action ");
184 TMSG(CPU_GPU_BLAME_CTL,
"stopping CPU_GPU_BLAME");
190 TMSG(CPU_GPU_BLAME_CTL,
"shutodown CPU_GPU_BLAME_CTL");
195 static bool METHOD_FN(supports_event,
const char *ev_str)
205 TMSG(CPU_GPU_BLAME_CTL,
"process event list, lush_metrics = %d", lush_metrics);
250 bs_entry.
fn = dlsym(RTLD_DEFAULT,
"gpu_blame_shifter");
262 printf(
"===========================================================================\n");
263 printf(
"Available CPU_GPU_IDLE events\n");
264 printf(
"===========================================================================\n");
265 printf(
"Name\t\tDescription\n");
266 printf(
"---------------------------------------------------------------------------\n");
267 printf(
"CPU_GPU_IDLE\tCPU GPU idleness\n");
275 #define ss_name cpu_gpu_idle 276 #define ss_cls SS_HARDWARE
static void METHOD_FN(init)
int cpu_idle_cause_metric_id
int h_to_d_data_xfer_metric_id
struct bs_fn_entry_t * next
int d_to_h_data_xfer_metric_id
void hpcrun_set_gpu_proxy_present()
metric_desc_t * hpcrun_set_metric_info_and_period(int metric_id, const char *name, MetricFlags_ValFmt_t valFmt, size_t period, metric_desc_properties_t prop)
void blame_shift_register(bs_fn_entry_t *entry)
int stream_special_metric_id
int uva_data_xfer_metric_id
int g_cpu_gpu_proxy_count
static bs_fn_entry_t bs_entry
bool hpcrun_ev_is(const char *candidate, const char *event_name)
#define METHOD_CALL(obj, meth,...)
int blame_shift_source_available(bs_type bst)
int hpcrun_new_metric(void)
void monitor_real_abort(void)
uint64_t g_active_threads
int d_to_d_data_xfer_metric_id
int gpu_overload_potential_metric_id
#define metric_property_none
int h_to_h_data_xfer_metric_id