Skip to content

Commit

Permalink
Adding HYDRAGNN_MASTER_PORT (ORNL#263)
Browse files Browse the repository at this point in the history
Adding HYDRAGNN_MASTER_ADDR env to set custom DDP port.
  • Loading branch information
jychoi-hpc authored and RylieWeaver committed Sep 25, 2024
1 parent 5c8f5e5 commit 0aa8e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydragnn/utils/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def setup_ddp():

## Default setting
master_addr = "127.0.0.1"
master_port = "8889"
master_port = os.getenv("HYDRAGNN_MASTER_PORT", "8889")

if os.getenv("HYDRAGNN_MASTER_ADDR") is not None:
master_addr = os.environ["HYDRAGNN_MASTER_ADDR"]
Expand Down

0 comments on commit 0aa8e4c

Please sign in to comment.