Comments (1)
Hi there,
I don't have direct experience with that but in principle BLASFEO and HPIPM have been designed to be as much as possible self contained and with low requirements regarding the supported C version.
The first question would be: does the ARM Cortex M7 in these microcontrollers have a double precision floating point unit? I see that this is optional.
If this is the case, I would compile BLASFEO with the following options (from Makefile.rule, CMake should be similar but it is possible that some are still missing there):
- TARGET: GENERIC
- LA: REFERENCE (you can also try out HIGH_PERFORMANCE but this requires more available registers to perform well, and in some routines it internally uses malloc - even though likely not the routine you would employ in HPIPM).
- MF: COLMAJ if you went for REFERENCE LA, PANELMAJ if you went for HIGH_PERFORMANCE LA
- BLAS_API to LAPACKE_API: 0
- EXTERNAL_BLAS_API: 0
- OS: this affects the assembly language conventions (that is not used for the GENERIC TARGET that is pure C), and the choice of the compilation flags (that you may have to customize yourself)
- USE_C99_MATH: here you can give a try, if 1 gives you problems you can try to turn this off at the cost of a little performance deficit in some special cases.
- EXT_DEP: setting to 0 you avoid the compilation of functions with external dependencies for printing and memory allocation.
- afterwards you will need to customize C compiler, CFLAGS and the like.
For HPIPM:
- TARGET: GENERIC
- USE_C99_MATH: same story as BLASFEO's one
- OS: only affects compilation flags and the like as there is no assembly here
- again afterwards you will need to customize C compiler, CFLAGS and the like.
If you don't have double precision floating point unit, then its software emulation is going to be very slow, while the single precision version of HPIPM is often cases not reliable as typically computations in interior point methods get quite ill conditioned close to the solution (clearly it also depends on the conditioning of the problem to be solved, difficult problems make it even harder).
As of now I don't recall other stuff.
It would be very appreciated if you can share your findings about what works and what doesn't.
from blasfeo.
Related Issues (20)
- Need to link against math library? HOT 1
- Linker error: SHF_MERGE section size (456) must be a multiple of sh_entsize (32) HOT 4
- Tests fail to build: libblasfeo.so: undefined reference to kernel_dpack_buffer_fn HOT 1
- Are there routines for matrix norms? HOT 2
- Incorrect documentation for dtrmm in blasfeo_d_blasfeo_api.h? HOT 3
- blasfeo_dtrmm_rltn not implemented HOT 1
- Missing symbols kernel_dpack_buffer_* in the shared library HOT 2
- Tests fail: error: undefined symbol: blasfeo_sgemm HOT 1
- When can we use parameter as both input and output? HOT 1
- What are m, n, k in dgemm routines? HOT 1
- blasfeo_target.h:1:0: error: unterminated #ifndef HOT 2
- MacOS M2 compiling issue HOT 2
- Calling certain triangular matrices routines leads to `undefined symbol` error HOT 2
- `blasfeo_dtrmm_rlnn` accesses invalid memory with offset on the lower triangular matrix HOT 1
- what is panel format? HOT 2
- Matrix Inversions HOT 6
- blasfeo_strmm_rlnn fails on HASWELL
- sgemm_nn fails for k > 8 on HASWELL HOT 1
- BLASFEO API explanation for Riccati recursion in HPIPM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blasfeo.