}
reported = true;
}
+ metric_reset(&metric);
}
if (reported) {
- metric_reset(&metric);
gpu_submit(gpu, &fam_bytes);
if (reported_ratio) {
gpu_submit(gpu, &fam_ratio);
reported_ratio = true;
}
}
+ metric_reset(&metric);
*old = bw;
ok = true;
}
- if (ok) {
- metric_reset(&metric);
- if (reported_ratio) {
- gpu_submit(gpu, &fam_ratio);
- }
- if (reported_rate) {
- gpu_submit(gpu, &fam_rate);
- }
- if (reported_counter) {
- gpu_submit(gpu, &fam_counter);
- }
+ if (reported_ratio) {
+ gpu_submit(gpu, &fam_ratio);
+ }
+ if (reported_rate) {
+ gpu_submit(gpu, &fam_rate);
+ }
+ if (reported_counter) {
+ gpu_submit(gpu, &fam_counter);
}
free(mems);
return ok;
reported = true;
}
}
+ metric_reset(&metric);
if (!reported) {
ERROR(PLUGIN_NAME ": neither requests nor actual frequencies supported "
"for domain %d",
}
}
if (reported) {
- metric_reset(&metric);
gpu_submit(gpu, &fam_freq);
if (reported_ratio) {
gpu_submit(gpu, &fam_ratio);
metric_family_metric_append(&fam_ratio, metric);
reported_ratio = true;
}
+ metric_reset(&metric);
*old = throttle;
ok = true;
}
- if (ok) {
- metric_reset(&metric);
- if (reported_ratio) {
- gpu_submit(gpu, &fam_ratio);
- }
- if (reported_counter) {
- gpu_submit(gpu, &fam_counter);
- }
+ if (reported_ratio) {
+ gpu_submit(gpu, &fam_ratio);
+ }
+ if (reported_counter) {
+ gpu_submit(gpu, &fam_counter);
}
free(freqs);
return ok;
metric_family_metric_append(&fam_ratio, metric);
reported_ratio = true;
}
+ metric_reset(&metric);
ok = true;
}
if (ok) {
- metric_reset(&metric);
gpu_submit(gpu, &fam_temp);
if (reported_ratio) {
gpu_submit(gpu, &fam_ratio);
}
}
}
+ metric_reset(&metric);
*old = counter;
ok = true;
}
- if (ok) {
- metric_reset(&metric);
- if (reported_energy) {
- gpu_submit(gpu, &fam_energy);
- }
- if (reported_power) {
- gpu_submit(gpu, &fam_power);
- }
- if (reported_ratio) {
- gpu_submit(gpu, &fam_ratio);
- }
+ if (reported_energy) {
+ gpu_submit(gpu, &fam_energy);
+ }
+ if (reported_power) {
+ gpu_submit(gpu, &fam_power);
+ }
+ if (reported_ratio) {
+ gpu_submit(gpu, &fam_ratio);
}
free(powers);
return ok;
metric_family_metric_append(&fam_ratio, metric);
reported_ratio = true;
}
+ metric_reset(&metric);
*old = stats;
ok = true;
}
- if (ok) {
- metric_reset(&metric);
- if (reported_ratio) {
- gpu_submit(gpu, &fam_ratio);
- }
- if (reported_counter) {
- gpu_submit(gpu, &fam_counter);
- }
+ if (reported_ratio) {
+ gpu_submit(gpu, &fam_ratio);
+ }
+ if (reported_counter) {
+ gpu_submit(gpu, &fam_counter);
}
free(engines);
return ok;