Build issues for custom target file in 2024b verions. Error in "emmintrin.h"

96 vues (au cours des 30 derniers jours)
Hi, We are using a custom target file. The model builds without issues in 2016b version. IF the same model is exported to 2024b, it has build issues. Same tmf / tlc file is used between 2016b and 2024b.
fatal error: could not open source file "emmintrin.h"
Model Build Reason Status Build Duration
===================================================================================================================================
sktSAST Information cache folder or artifacts were missing. Failed to build. For more information, see build log. 0d

Réponse acceptée

Githin George
Githin George le 3 Oct 2024
Hello Kiruthika,
The file "emmintrin.h" is a header file associated with Intel x86_64 instruction set extensions for SIMD, specifically SSE2 (Streaming SIMD Extensions 2). If a non-Intel processor is being used (e.g. an ARM processor), then these extensions will not be available (and "emmintrin.h" will not exist).
The “emmintrin.h” header file might be generated in the code based on the setting “Leverage target hardware instruction set extensions” in the model’s configuration parameters. Please verify that this setting is set to ‘None’ and see if that generates code without that extra header file. This setting is found in:
Configuration parameters > Code Generation > Optimizations > Leverage target hardware instruction sets.
Please find more information on the “leverage target hardware instruction set extensions” setting via the link below. You may also take a look at the section “Limitations” which states that custom toolchains must set the “Instruction set extensions” to “None”:
I hope this helps.
  1 commentaire
Kiruthika
Kiruthika le 4 Oct 2024
Hi George,
Thanks for the reply. Yes, the above solution works. However, it is now carried by a different error.
I have a .tlc/tmf file created for 64-bit. It is building the model successfully. But if I rename the files, it throws error "Dot indexing is not supported for variables of this type".
Note : The content inside the tlc/tmf files are same. Only the file name is changed. (from 'C671xR20_64' to 'C671xR24_M64_P64')
Any leads will be appreciated.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by