The extrinsic function 'horzcat' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated becaus
Afficher commentaires plus anciens
Thanks Jan for your answer.
My mfile is now converted to MEX but can not generate a C/C++ sourse code using GPU Coder APP, giving the following error.
"The extrinsic function 'horzcat' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error by not using 'horzcat' or by ensuring that its outputs are unused."
I looked it up in myfile.cu and commmented out //horzcats but no success.
Any ideas?
3 commentaires
Jan
le 10 Déc 2022
You are welcome. I assume, you mean an answer in another thread?
Can you post the code?
Ram Kokku
le 11 Déc 2022
@Fatemeh - horzcat is supported for code generation. here the doc for it https://www.mathworks.com/help//matlab/ref/double.horzcat.html.
Are you using coder.extrensic function anywhere? would you be able to share the problematic code snippet?
Fatemeh Kalantari
le 15 Déc 2022
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 10 Déc 2022
Déplacé(e) : Image Analyst
le 10 Déc 2022
Does the same problem occur if you use [] notation?
horzcat(a,b)
[a,b]
should be the same. Maybe it only allows [] with constants?
You could also try
cat(2,a,b)
Catégories
En savoir plus sur Get Started with GPU Coder dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!