ROCm / pyrsmi

python package of rocm-smi-lib
MIT License
18 stars 6 forks source link

fix typo #18

Open cathalobrien opened 1 week ago

cathalobrien commented 1 week ago

Hi, there was a typo in the function 'smi_get_device_topo_numa_affinity'

def smi_get_device_topo_numa_affinity(dev):
    """returns the NUMA node associated with the device"""
    numa_node = c_uint32()
# - ret = reocm_lib.rsmi_topo_numa_affinity_get(dev, byref(numa_node))
    ret = rocm_lib.rsmi_topo_numa_affinity_get(dev, byref(numa_node))
    return numa_node.value if rsmi_ret_ok(ret) else -1