Skip to content

Commit

Permalink
fix(cpu_accelerator): 🐛 Convert LOCAL_SIZE to integer (#3971)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Salmeron Garcia <[email protected]>
Co-authored-by: Jeff Rasley <[email protected]>
  • Loading branch information
javsalgar and jeffra authored Jul 17, 2023
1 parent 31ac29d commit f5c834a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accelerator/cpu_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def current_device_name(self):
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
Expand Down

0 comments on commit f5c834a

Please sign in to comment.