-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lidar simulation is not working in WSL2 #115
Comments
@msz-rai do you have any experience running the https://github.com/RobotecAI/RobotecGPULidar on WSL2? |
@sasa42 could you also share the
my output: mfc@mfc-leo:~$ nvidia-smi
Thu Jul 11 13:32:27 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06 Driver Version: 545.29.06 CUDA Version: 12.3 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3080 Off | 00000000:2D:00.0 On | N/A |
| 53% 75C P2 148W / 320W | 3447MiB / 10240MiB | 23% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1583 G /usr/lib/xorg/Xorg 838MiB |
| 0 N/A N/A 5867 G ...yOnDemand --variations-seed-version 42MiB |
| 0 N/A N/A 6345 G ...,262144 --variations-seed-version=1 226MiB |
| 0 N/A N/A 1131802 G ...erProcess --variations-seed-version 23MiB |
| 0 N/A N/A 1164733 G ...erProcess --variations-seed-version 65MiB |
| 0 N/A N/A 2589250 C+G ./awsim_labs_v1.1.1/awsim_labs.x86_64 2198MiB |
| 0 N/A N/A 3169233 G ...seed-version=20240708-050118.992000 15MiB |
+---------------------------------------------------------------------------------------+ |
@sasa42 You shouldn't source Ros2 when launching AWSIM. That's the reason why lidars are not working. Please comment out sourcing lines from the .bashrc if you've added there. |
...uh. I thsi case i only started ...v1.1.1/ I deleted the log files several times and redid the awsim start. |
The errors you've posted says that you've sourced Ros2. Also please launch the awsim from a fresh separate terminal without sourcing the ros2. |
.bashrc file is located at the home directory. you can open it with:
And modify the file. |
But you have other Nvidia Optix related errors, this still won't work. Your only option is to dual boot with Ubuntu, run both AWSIM Labs and Autoware in native ubuntu 22.04 |
needed configs are... Autoware WSL - AWSIM WIN 1PC Autoware WSL - AWSIM WIN 2PC |
For me it says:
Full AWSIM Labs or AWSIM probably won't run on WSL2. @lchojnack @WJaworskiRobotec @msz-rai are from Robotec and their team developed the Lidar Unity simulator. Maybe they can help but seeing awsim also slow, I wouldn't recommend it. |
@xmfcx By looking on the errors, my quick intuition is that either CUDA driver support is not full on WSL2, or implicit initialization behavior of the CUDA driver is different on WSL2 than everywhere else and it doesn't get automatically initialized before constructing OptiX context. If you're willing to recompile RGL and debug, the relevant place to look is here.
Would you mind expanding your thought? |
Thanks for the gist to compare. Was quite a journey to get it to this point. 1.install WSL2 with Ubuntu
to get |
There are some test on 4 pages from last year.... the WSL2 vs native performance doesn t look so bad. There was also an CUDA GPU article. I post it when i refound it. |
On the left i have some detailed debug output... (https://github.com/autowarefoundation/AWSIM-Labs/assets/1211326/1b06fdc4-380a-4861-8048-593c5baab9c2) Do you need the nvidia-smi, too |
He has a pc with high end parts: 7945HX cpu and rtx 4090 yet he has very low framerates. Maybe we should fix the problem of AWSIM Labs not running on windows. Then he could run autoware on wsl2 and awsim labs on native windows. |
Need to add that we don't support WSL to the documentation. |
We will not be supporting the WSL2, updated the documentation. Closing the issue. |
Background
Problem
All CUDA, TensorRT, cuDNN versions are correct, dds settings are done, correct version of autoware is compiled etc.
But on AWSIM Labs side, there is no lidar simulation, no red point cloud visualization, lidar topics are empty.
Report
... some lidar are missing....
and the pointcloud_raw_ex
Originally posted by @sasa42 in #87 (comment)
The text was updated successfully, but these errors were encountered: