Skip to content

Commit a6eccc2

Browse files
committed
fix: main_server 支持多 GPU 适配,修复 #11
1 parent 0a9e226 commit a6eccc2

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

main_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from flowline import run_cli
44

55
def func(dict, gpu_id, sorted_gpu_ids):
6-
print(sorted_gpu_ids)
76
return "CUDA_VISIBLE_DEVICES="+str(gpu_id)+" python -u test/test.py "+ " ".join([f"--{k} {v}" for k, v in dict.items()])
87

98
def cmp(info1, info2):

main_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from flowline import get_app
44
from flask_cors import CORS
55

6-
def func(dict, gpu_id):
6+
def func(dict, gpu_id, sorted_gpu_ids):
77
return "CUDA_VISIBLE_DEVICES="+str(gpu_id)+" python -u test/test.py "+ " ".join([f"--{k}={v}" for k, v in dict.items()])
88

99
def main():

test/todo.xlsx

9.87 KB
Binary file not shown.

0 commit comments

Comments
 (0)