Skip to content

Commit

Permalink
update log
Browse files Browse the repository at this point in the history
  • Loading branch information
rayg1234 committed Nov 26, 2024
1 parent 24b13e0 commit b96fb12
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/fairchem/core/common/distutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ def setup(config) -> None:
f"Init: {config['init_method']}, {config['world_size']}, {config['rank']}"
)

# ensures GPU0 does not have extra context/higher peak memory
assign_device_for_local_rank(config["cpu"], config["local_rank"])

logging.info(
f"local rank: {config['local_rank']}, visible devices: {os.environ['CUDA_VISIBLE_DEVICES']}"
f"local rank: {config['local_rank']}, rank: {config['rank']}, visible devices: {os.environ['CUDA_VISIBLE_DEVICES']}"
)

assign_device_for_local_rank(config["cpu"], config["local_rank"])

dist.init_process_group(
backend="nccl",
init_method=config["init_method"],
Expand Down

0 comments on commit b96fb12

Please sign in to comment.