Skip to content

Commit

Permalink
fix the accelerator issue
Browse files Browse the repository at this point in the history
Co-authored-by: eigen2017 <[email protected]>
  • Loading branch information
yangcheng and eigen2017 committed Apr 15, 2024
1 parent e448b6a commit c89600c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accelerator/mps_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def build_extension(self):
def export_envs(self):
return []

def visible_devices_env(self):
def visible_devices_envs(self):
# TODO could not find visible devices env for mps
return ['CUDA_VISIBLE_DEVICES']

def set_visible_devices_envs(self, current_env, local_accelerator_ids):
Expand Down

0 comments on commit c89600c

Please sign in to comment.