mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nvk: Support blackwell in max_warps_per_mp_for_sm
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34161>
This commit is contained in:
parent
f2aac0f96a
commit
16e3e0d93b
1 changed files with 5 additions and 0 deletions
|
|
@ -111,6 +111,9 @@ sm_for_chipset(uint16_t chipset)
|
|||
static uint8_t
|
||||
max_warps_per_mp_for_sm(uint8_t sm)
|
||||
{
|
||||
/* These are documented in each architecture's tuning guide. Eg. see:
|
||||
* https://docs.nvidia.com/cuda/blackwell-tuning-guide/index.html#occupancy
|
||||
*/
|
||||
switch (sm) {
|
||||
case 10:
|
||||
case 11:
|
||||
|
|
@ -124,6 +127,7 @@ max_warps_per_mp_for_sm(uint8_t sm)
|
|||
case 86:
|
||||
case 87:
|
||||
case 89:
|
||||
case 120:
|
||||
return 48;
|
||||
case 30:
|
||||
case 32:
|
||||
|
|
@ -139,6 +143,7 @@ max_warps_per_mp_for_sm(uint8_t sm)
|
|||
case 72:
|
||||
case 80:
|
||||
case 90:
|
||||
case 100:
|
||||
return 64;
|
||||
default:
|
||||
assert(!"unkown SM version");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue