MCPcopy
hub / github.com/deepspeedai/DeepSpeed / device_count

Method device_count

accelerator/hpu_accelerator.py:72–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 return 'hpu:{}'.format(self.current_device())
71
72 def device_count(self):
73 return self.hpu.device_count()
74
75 def synchronize(self, device_index=None):
76 return self.hpu.synchronize()

Callers 15

create_deepspeed_argsFunction · 0.45
_launch_procsMethod · 0.45
TestDistAllReduceClass · 0.45
test_mpi_perf.pyFile · 0.45
_validate_folder_mappingFunction · 0.45
mainFunction · 0.45
__init__Method · 0.45
__avg_scatter_gradsMethod · 0.45
create_mics_comm_groupsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected