Skip to content

Installing Box2d py for BipedalWalker v3 on Summit

Ai edited this page Jan 20, 2022 · 4 revisions

List of system modules:

Currently Loaded Modules:
  1) gcc/10.2.0   2) spectrum-mpi/10.4.0.3-20210112   3) cuda/10.2.89   4) open-ce/1.1.3-py38-0 (H)   5) git-lfs/2.11.0

Installation instructions:

conda install -c anaconda swig
git clone https://github.com/pybox2d/pybox2d -b 2.3.1
cd pybox2d/
CXX=`which g++` CC=`which gcc` python setup.py build
CXX=`which g++` CC=`which gcc` python setup.py install

Running on Summit:

jsrun --nrs 6 --tasks_per_rs 1 --cpu_per_rs 7 --gpu_per_rs 1 --rs_per_host 6 --latency_priority GPU-CPU --launch_distribution packed --bind packed:7 python exarl/driver --output_dir /gpfs/alpine/ast153/scratch/$USER/results_dir/ --env BipedalWalker-v3 --n_episodes 10 --n_steps 10 --workflow async --agent DDPG-v0 --model_type AC --action_type variable

Note: The number of time steps should be about 2000. (Reference: https://github.com/openai/gym/blob/master/gym/envs/box2d/bipedal_walker.py)