Closed chenyenru closed 2 months ago
Hey @chenyenru,
AutoDRIVE Simulator requires Vulkan graphics API, which is generally supported on dedicated GPUs (tested on NVIDIA GPUs). Do you happen to know any integrated graphics cards that support Vulkan? Also, integrated graphics cards generally have significantly lower V-RAM than a dedicated GPU. So chances are that AutoDRIVE Simulator may not run on an integrated graphics card unless built from source with lower graphics settings and using a generic graphics API such as OpenGL.
If you're facing GPU-related issues within the Docker container, there are three things that you can try:
1. [Initial Testing] Try pulling and running the official AutoDRIVE Simulator Docker Container without building it yourself. If it launches and runs well, you probably have something to look for in your build process.
docker pull autodriveecosystem/autodrive_f1tenth_sim
2. [Preferred Option] You can download the standalone executable of AutoDRIVE Simulator and run it locally (it should be easier to access the GPU this way). You can then run only AutoDRIVE Devkit as a container. Everything else will work just fine, only that the simulator will not be running inside a Docker container. Even if you are planning on participating in the Sim Racing League, this shouldn’t matter, since you will have to submit only the container for your algorithm (i.e. Devkit) and not the Simulator. We will run the containerized simulator on our side for the competition.
3. [Worst-Case Option] You can try to run the simulator in headless mode (this does not require any GPU) by passing the following command-line argument while launching it:
cd /home/autodrive_simulator && ./AutoDRIVE\ Simulator.x86_64 -batchmode -nographics
This line should replace line 5 in autodrive_simulator.sh.
[!NOTE] Be warned that running the simulator in headless mode will disable all graphics rendering jobs including the camera sensors. You will be able to access camera frames via the API, but they’ll be blank!
Hope this helps.
Thanks and cheers, Tinker Twins
Hi @Tinker-Twins ,
First of all, thanks for the really prompt response!
I ran the standalone simulator without placing it in docker container, and it works now.
Could I safely assume that my laptop's integrated GPU supports vulcan?
Yes, if everything is running smoothly, your laptop's integrated GPU supports Vulkan.
Thanks, I've decided to run it on a laptop with dedicated GPU now
On Tue, Aug 6, 2024 at 7:55 PM Tinker Twins @.***> wrote:
Yes, if everything is running smoothly, your laptop's integrated GPU supports Vulkan.
— Reply to this email directly, view it on GitHub https://github.com/AutoDRIVE-Ecosystem/AutoDRIVE-F1TENTH-Sim-Racing/issues/2#issuecomment-2272519322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKHZ726LQ5EI47FBOENRVF3ZQGEANAVCNFSM6AAAAABLGVRNHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGUYTSMZSGI . You are receiving this because you were mentioned.Message ID: <AutoDRIVE-Ecosystem/AutoDRIVE-F1TENTH-Sim-Racing/issues/2/2272519322@ github.com>
Hi @Tinker-Twins, thanks for your contribution to the F1Tenth community, I'm really excited to run the simulation.
It would be great to have docker image variant for container that is runnable on machines with integrated graphics card. I've been trying to do so with the following variant of autodrive_simulator.Dockerfile:
However, after building the image with the commands in the guide (see below), there was an error about driver not being supported. I tried adding
--device=/dev/dri:/dev/dri
flag, which should've been enabled throughprivileged
too but the same error was still returned.Build Command used:
Run command used:
Error message: