Skip to content

Commit

Permalink
Adding HYDRAGNN_MASTER_PORT
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 Jul 3, 2024
1 parent 6d6ff8d commit 940a1fe
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 940a1fe

Please sign in to comment.