Updated human readable output for numa affinity
Change-Id: Id9767100061bd6e0f3b42cd2af80da7b588276b6
Signed-off-by: Maisam Arif <maisarif@amd.com>
[ROCm/amdsmi commit: 4c66db6b03]
This commit is contained in:
committed by
Dmitrii Galantsev
parent
9837144454
commit
e3d24255c8
@@ -451,6 +451,9 @@ class AMDSMICommands():
|
||||
|
||||
try:
|
||||
numa_affinity = amdsmi_interface.amdsmi_get_gpu_topo_numa_affinity(args.gpu)
|
||||
# -1 means No numa node is assigned to the GPU, so there is no numa affinity
|
||||
if self.logger.is_human_readable_format() and numa_affinity == -1:
|
||||
numa_affinity = "NONE"
|
||||
except amdsmi_exception.AmdSmiLibraryException as e:
|
||||
numa_affinity = "N/A"
|
||||
logging.debug("Failed to get numa affinity for gpu %s | %s", gpu_id, e.get_error_info())
|
||||
|
||||
Reference in New Issue
Block a user