Skip to content

Commit

Permalink
Add missing NeuronPlugin configure_single_process function (#8694)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhataws authored Feb 11, 2025
1 parent cff9f4e commit 065cb5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torch_xla/_internal/neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,8 @@ def library_path(self):
def configure_multiprocess(self, local_rank, local_world_size):
initialize_env(local_rank, local_world_size)

def configure_single_process(self):
initialize_env(0, 1)

def physical_chip_count(self):
return num_local_processes()

0 comments on commit 065cb5b

Please sign in to comment.