Forward CUDA printf output to the MATLAB console
Afficher commentaires plus anciens
I am wrapping CUDA code in a mex file. I have printfs in my CUDA kernel, and I want to see the output from those printfs, ideally in the MATLAB console, but at least somewhere.
Just calling printf, whether within a CUDA kernel or in a normal C/C++ file (avoiding mexPrintf) doesn't get output to the MATLAB console or to the program output window of an attached debugger such as Visual Studio. Perhaps it's just a question of piping stdout somewhere.
Please note that using mexPrintf is not an option here - it won't work in the CUDA kernel. Please also note that I don't have any add-on toolboxes.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur GPU Computing 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!