carla
carla copied to clipboard
Running primary and secondary servers for CARLA multi-GPU in different PCs
CARLA version: 0.9.13
Platform/OS: Linux (Ubuntu 20.04)
Problem you have experienced:
I was trying to experiment with the CARLA's multi-gpu feature by running primary server in one PC and secondary server in another PC.
When I try to launch the python client, it initially connects to the primary server, but later crashes and primary server crashes too.
This problem doesn't happen when I run both primary and secondary server in same PC and use localhost for connecting.
When I tried to dig this deeper with the logs, I found that python Client/ libCarla uses a single hostname for both the RPC client (Port : 2000) and streaming client (Port 2001) Because of this rpc client connects to primary_host:2000 and streaming client connects to primary_host:3001 instead of using secondary server for streaming connection.
What you expected to happen:
I should be able to run primary and secondary in two different PCs and launch a client without crashing.
Steps to reproduce:
Command used to run primary server with IP (10.91.10.151)
./CarlaUE4.sh -nullrhi
Command used to run secondary server with IP (10.91.10.110)
./CarlaUE4.sh -carla-primary-host=10.91.10.151 -carla-primary-port=2002 -carla-rpc-port=3000 -ini:[/Script/Engine.RendererSettings]:r.GraphicsAdapter=0 -RenderOffScreen
I run a python client (synchronous_mode.py from PythonAPI examples folder) with
carla.Client('10.91.10.151' , 2000)
In this example, the python client tries to connect to 10.91.10.151:2000 which is successfull and later tries to connect to 10.91.10.151:3001 which is unsuccesfull and crashes. Instead I feel it should have tried to connect with 10.91.10.110:3001
@bernatx : Kindly help me with this.
For now we are not supporting this but we plan to, so we cannot help you in this moment. We need to test more on this matter.