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 12, 2024
1 parent 0a654d6 commit e448b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accelerator/xpu_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def export_envs(self):
return []

def visible_devices_envs(self):
return ['CUDA_VISIBLE_DEVICES']
return ['ZE_AFFINITY_MASK']

def set_visible_devices_envs(self, current_env, local_accelerator_ids):
for env in self.visible_devices_envs():
Expand Down

0 comments on commit e448b6a

Please sign in to comment.