giaf / hpipm

High-performance interior-point-method QP and QCQP solvers
Other
502 stars 124 forks source link

Building in nvidia tegra xavier (nvgpu)/integrated, armv8, ubuntu 18.04 #163

Open Zhihaibi opened 1 month ago

Zhihaibi commented 1 month ago

Hi,

I am trying to compile hpipm on Arm (nvidia tegra xavier (nvgpu)/integrated, armv8, ubuntu 18.04 )

and meet these error: Unrecognized command line option '-m64' and '-mavx'

9630b789c645be070e45f001ce36885

I have already switched to the GENERIC target in HPIPM in Cmakelist.txt:

Target architecture

set(TARGET AVX CACHE STRING "Set CPU architecture target")

set(TARGET GENERIC CACHE STRING "Set CPU architecture target")

and in makefile.rule, I modify to:

Target architecture

TARGET = AVX512

TARGET = AVX

TARGET = GENERIC

But I still get this error, do you know how to solve it? Thank you very much!

giaf commented 1 month ago

Hi, if you choose generic target in HPIPM (and generic or some armv8a target in BLASFEO), then these flags should definitely not be set, you can inspect yourself the make or cmake building scripts. So I would guess, either there is a cache somewhere that still sets a different target, or the build system in the OCS2 framework overwrites your manual settings. You can try to investigate this and in case contact the developers of OCS2 if that is the issue. Once you find a solution to the issue, please also post it here.