Skip to content

Commit

Permalink
Add network_interface for Orchestrator as user parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kurz committed Jul 24, 2024
1 parent ab0c2f3 commit 6304690
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
7 changes: 2 additions & 5 deletions examples/HIT_24_DOF/prm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ environment:
executable_path: ../../../flexi-extensions/build/bin/flexi
parameter_file: ./simulation_files/parameter_flexi.ini
mesh_file: ./simulation_files/CART_HEX_PERIODIC_004_mesh.h5
#local_dir: /var/tmp
mpi_launch_mpmd: False
env_launcher: local

# All parameters for setting up the reward
Expand Down Expand Up @@ -64,6 +62,5 @@ performance:
# SmartSim
smartsim:
smartsim_port: 6780
smartsim_num_dbs: 1
smartsim_launcher: pbs
smartsim_orchestrator: pbs
smartsim_network_interface: local
smartsim_orchestrator: auto
7 changes: 2 additions & 5 deletions examples/HIT_32_DOF/prm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ environment:
executable_path: ../../../flexi-extensions/build/bin/flexi
parameter_file: ./simulation_files/parameter_flexi.ini
mesh_file: ./simulation_files/CART_HEX_PERIODIC_004_mesh.h5
#local_dir: /var/tmp
mpi_launch_mpmd: False
env_launcher: local

# All parameters for setting up the reward
Expand Down Expand Up @@ -64,6 +62,5 @@ performance:
# SmartSim
smartsim:
smartsim_port: 6780
smartsim_num_dbs: 1
smartsim_launcher: pbs
smartsim_orchestrator: pbs
smartsim_network_interface: local
smartsim_orchestrator: auto
8 changes: 4 additions & 4 deletions src/relexi/rl/ppo/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def train( config_file
,do_profile = False
,smartsim_port = 6780
,smartsim_num_dbs = 1
,smartsim_launcher = "local"
,smartsim_orchestrator = "local"
,env_launcher = "mpirun"
,smartsim_orchestrator = 'local'
,smartsim_network_interface = 'local'
,env_launcher = 'mpirun'
,mpi_launch_mpmd = False
,local_dir = None
,n_procs_per_node=128 # Hawk
Expand Down Expand Up @@ -110,7 +110,7 @@ def train( config_file
runtime = relexi.runtime.Runtime(
type_=smartsim_orchestrator,
db_port=smartsim_port,
db_network_interface='ibp94s0',
db_network_interface=smartsim_network_interface,
)
runtime.info()

Expand Down

0 comments on commit 6304690

Please sign in to comment.