We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31ac29d commit f5c834aCopy full SHA for f5c834a
accelerator/cpu_accelerator.py
@@ -40,7 +40,7 @@ def current_device_name(self):
40
def device_count(self):
41
device_count = int(os.environ.get('LOCAL_SIZE', 0))
42
if device_count > 0:
43
- return os.environ.get('LOCAL_SIZE')
+ return device_count
44
else:
45
from deepspeed.utils.numa import get_numa_cores
46
# Count NUMA node for number of cpu accelerators. On machine with HBM
0 commit comments