mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
nvc0: fix metric-achieved_occupancy calculation on Kepler
The maximum number of resident warps per multiprocessor is 64 on Kepler instead of 48 on Fermi. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
a87a1420d6
commit
8022c7480e
1 changed files with 4 additions and 1 deletions
|
|
@ -420,7 +420,10 @@ sm30_hw_metric_calc_result(struct nvc0_hw_query *hq, uint64_t res64[8])
|
|||
{
|
||||
switch (hq->base.type - NVE4_HW_METRIC_QUERY(0)) {
|
||||
case NVE4_HW_METRIC_QUERY_ACHIEVED_OCCUPANCY:
|
||||
return sm20_hw_metric_calc_result(hq, res64);
|
||||
/* (active_warps / active_cycles) / max. number of warps on a MP */
|
||||
if (res64[1])
|
||||
return (res64[0] / (double)res64[1]) / 64;
|
||||
break;
|
||||
case NVE4_HW_METRIC_QUERY_BRANCH_EFFICIENCY:
|
||||
return sm20_hw_metric_calc_result(hq, res64);
|
||||
case NVE4_HW_METRIC_QUERY_INST_ISSUED:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue