未验证 提交 f5c834a6 编写于 作者: J Javier J. Salmerón-García 提交者: GitHub

fix(cpu_accelerator): 🐛 Convert LOCAL_SIZE to integer (#3971)

Signed-off-by: NJavier Salmeron Garcia <jsalmeron@vmware.com>
Co-authored-by: NJeff Rasley <jerasley@microsoft.com>
上级 31ac29dd
......@@ -40,7 +40,7 @@ class CPU_Accelerator(DeepSpeedAccelerator):
def device_count(self):
device_count = int(os.environ.get('LOCAL_SIZE', 0))
if device_count > 0:
return os.environ.get('LOCAL_SIZE')
return device_count
else:
from deepspeed.utils.numa import get_numa_cores
# Count NUMA node for number of cpu accelerators. On machine with HBM
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册