Skip to content

Commit f5c834a

Browse files
javsalgarjeffra
andauthored
fix(cpu_accelerator): 🐛 Convert LOCAL_SIZE to integer (#3971)
Signed-off-by: Javier Salmeron Garcia <[email protected]> Co-authored-by: Jeff Rasley <[email protected]>
1 parent 31ac29d commit f5c834a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accelerator/cpu_accelerator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def current_device_name(self):
4040
def device_count(self):
4141
device_count = int(os.environ.get('LOCAL_SIZE', 0))
4242
if device_count > 0:
43-
return os.environ.get('LOCAL_SIZE')
43+
return device_count
4444
else:
4545
from deepspeed.utils.numa import get_numa_cores
4646
# Count NUMA node for number of cpu accelerators. On machine with HBM

0 commit comments

Comments
 (0)