Skip to content

Commit

Permalink
Merge pull request #172 from janrope/enable_numgpus_ray_init
Browse files Browse the repository at this point in the history
[bug fix] added num_gpus variable to ray init call
  • Loading branch information
Theohhhu committed Aug 22, 2023
2 parents 921b72b + 5917868 commit 63bd131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion marllib/marl/algos/run_cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def restore_config_update(exp_info, run_config, stop_config):


def run_cc(exp_info, env, model, stop=None):
ray.init(local_mode=exp_info["local_mode"])
ray.init(local_mode=exp_info["local_mode"], num_gpus=exp_info["num_gpus"])

########################
### environment info ###
Expand Down
2 changes: 1 addition & 1 deletion marllib/marl/algos/run_il.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


def run_il(exp_info, env, model, stop=None):
ray.init(local_mode=exp_info["local_mode"])
ray.init(local_mode=exp_info["local_mode"], num_gpus=exp_info["num_gpus"])

########################
### environment info ###
Expand Down
2 changes: 1 addition & 1 deletion marllib/marl/algos/run_vd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


def run_vd(exp_info, env, model, stop=None):
ray.init(local_mode=exp_info["local_mode"])
ray.init(local_mode=exp_info["local_mode"], num_gpus=exp_info["num_gpus"])

########################
### environment info ###
Expand Down

0 comments on commit 63bd131

Please sign in to comment.