ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Disable AVX instructions for entire catkin workspace

asked 2017-01-24 08:03:41 -0500

MrX gravatar image

I have a multitude of packages in my catkin workspace that all need to be compiled without using AVX instructions. Is there a way to globally disable AVX instructions when using catkin build? It is not an option for me to disable AVX instructions in every single CMakeLists.txt.

My first attempt was to add -mavx to the Make Args of catkin config but that was unsuccessful probably because it is not a Make argument but a compiler option.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-25 04:09:16 -0500

MrX gravatar image

This works:

catkin build --force-cmake --cmake-args -DCMAKE_CXX_FLAGS="-mno-avx"
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-01-24 08:03:41 -0500

Seen: 707 times

Last updated: Jan 25 '17