Skip to content

Commit 166f4e1

Browse files
committed
arch: Add Device.thread_group_slots
1 parent e797594 commit 166f4e1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎devito/arch/archinfo.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,12 @@ class Device(Platform):
10081008
"warp" in NVidia GPUs and a "wavefront" in AMD GPUs.
10091009
"""
10101010

1011+
thread_group_slots = None
1012+
"""
1013+
Number of thread groups issue/execution slots per compute engine (e.g.
1014+
SM for Nvidia GPUs, CU for AMD GPUs).
1015+
"""
1016+
10111017
def __init__(self, name, cores_logical=None, cores_physical=None, isa='cpp',
10121018
max_threads_per_block=1024, max_threads_dimx=1024,
10131019
max_threads_dimy=1024, max_threads_dimz=64,
@@ -1091,6 +1097,7 @@ def march(self):
10911097
class NvidiaDevice(Device):
10921098

10931099
thread_group_size = 32
1100+
thread_group_slots = 4
10941101

10951102
max_mem_trans_nbytes = 128
10961103

@@ -1182,6 +1189,7 @@ class Blackwell(Hopper):
11821189
class AmdDevice(Device):
11831190

11841191
thread_group_size = 64
1192+
thread_group_slots = 4
11851193

11861194
max_mem_trans_nbytes = 256
11871195

0 commit comments

Comments
 (0)