Skip to content

Commit 25cb3d3

Browse files
committed
numa set local alloc
Signed-off-by: Mauricio J. Serrano <[email protected]>
1 parent 75b5096 commit 25cb3d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aiu_fms_testing_utils/scripts/inference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@
343343
numa_rank = dist.get_rank()
344344
numa_node = dist.get_rank() // numa_size_per_node
345345
schedule.run_on_nodes(numa_node)
346+
from numa import memory
347+
memory.set_local_alloc()
346348
dprint(f"NUMA: process {numa_rank} set to node {numa_node}")
347349
except:
348350
dprint(f"NUMA not available in this machine, please install libnuma libraries")

0 commit comments

Comments
 (0)