def is_numactl_available(): try: return os.system('numactl --hardware > /dev/null 2>&1') == 0 except: return False