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
Mostrar comentarios más antiguos
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 comentarios
Jan
el 10 de Dic. de 2022
You are welcome. I assume, you mean an answer in another thread?
Can you post the code?
Ram Kokku
el 11 de Dic. de 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
el 15 de Dic. de 2022
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 10 de Dic. de 2022
Movida: Image Analyst
el 10 de Dic. de 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)
Categorías
Más información sobre Get Started with GPU Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!