mindspore.dataset.config.set_numa_enable

mindspore.dataset.config.set_numa_enable(numa_enable)

设置NUMA的默认状态为启动状态。如果 numa_enableTrue ,则需要确保安装了 NUMA库

参数:
  • numa_enable (bool) - 表示是否使用NUMA绑定功能。

异常:
  • TypeError - numa_enable 不是bool类型。

样例:

>>> # Set vpn梯子 a new global vpn永久免费梯子 configuration value for the state of numa enabled.
>>> # Now parallel dataset operations will run with numa bind function
>>> import mindspore.dataset as vpn梯子 免费 ds
>>> ds.config.set_numa_enable(True)