Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
mzr1996 committed Aug 2, 2023
1 parent ba77857 commit 326da8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencompass/runners/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def launch(self, tasks: List[Dict[str, Any]]) -> List[Tuple[str, int]]:
if 'CUDA_VISIBLE_DEVICES' in os.environ:
all_gpu_ids = [
int(i) for i in re.findall(
'(?<!-)\d+', os.getenv('CUDA_VISIBLE_DEVICES'))
r'(?<!-)\d+', os.getenv('CUDA_VISIBLE_DEVICES'))
]
else:
all_gpu_ids = list(range(torch.cuda.device_count()))
Expand Down

0 comments on commit 326da8c

Please sign in to comment.