Skip to content

Commit

Permalink
change device order, fix bug in argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Zhu committed May 21, 2024
1 parent 930e373 commit 663ed0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CryoREAD/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def init_save_path(origin_map_path):

gpu_id = params["gpu"]
if gpu_id is not None:
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = gpu_id
cur_map_path = os.path.abspath(params["F"])
# process the map path if it's ending with .gz
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

args = parser.parse_args()

logger.info("Input job folder path: " + args.F)
logger.info("Input job folder path: ", args.F)

CRYOREAD_PATH = "./CryoREAD/main.py"

Expand Down

0 comments on commit 663ed0e

Please sign in to comment.