-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
-mtune=generic on RISC‑V is not recognized #4872
Comments
Ooo neat - I haven't used / had a user mention RISC-V before! This is not an officially supported architecture in ROS-land, but happy to review/merge PRs that resolve this issue so that you can keep going. Do see that MPPI's preformance is good without simd optimizations enabled? That is a pretty critical part of how the system can function real-time on CPU-only. I don't think its valuable to support MPPI without simd since I'm not sure it can realistically run at 30+hz with a realistic sampling size otherwise.
This should work for any processor, that seems like a gap in RISC-V support in CMake. We could check the processor architecture and have different flags set depending on the processor, that should be an easy-enough pull request to submit to get around that. I'd recommend looking at the |
@ahmadSum1 any followup? |
Sorry about the super late reply. |
I will close this then if this is not a priority for your group since RISC-V is not a standard or ROS Tier 1 supported architecture. I’m happy to review PRs needed to support it, but without the ability to reproduce, there’s not much actionable here for the community. Should this become a priority, please feel free to submit a PR or reopen this ticket for discussion! Maybe down the line this architecture will be more widely used to provide support 🙂 Right now, I wouldn’t consider this to be a ‘bug’ to fix since there aren’t users of this work that require it. |
Bug Report
Required Info:
87aae5dc0f078c44ed17f252252b8f629bbcc7e4
rmw_zenoh_cpp
Steps to reproduce issue
navigation2
repository:mkdir -p src rosinstall_generator --rosdistro jazzy --deps navigation2 --exclude RPP | vcs import src
nav2_mppi_controller
package:mtune
,xtensor
andxsimd
:-mtune=rocket
or-mtune=sifive-7-series
Expected Behavior
The package should build successfully without requiring manual intervention to disable SIMD optimizations.
Actual Behavior
The build fails due to compatibility issues with SIMD and
xsimd
on the RISC-V platform.fix that worked
To resolve the issue, I applied a workaround:
XSIMD
inxtensor
by adding-DXTENSOR_DISABLE_XSIMD
and-DXSIMD_NO_SUPPORTED_ARCH=1
to theCMakeLists.txt
.Patch of my changes is attached:
Additional Information
The text was updated successfully, but these errors were encountered: