Hello,
I try to create a c++ Top using CUDA. with openframeworks.
My first attempt is to pass input image to output.
I do not succeed to pass topInput->cudaInput to outputFormat->cudaOutput[0]
Any help ?
Thanks a lot
Hello,
I try to create a c++ Top using CUDA. with openframeworks.
My first attempt is to pass input image to output.
I do not succeed to pass topInput->cudaInput to outputFormat->cudaOutput[0]
Any help ?
Thanks a lot
You probably don’t need to make a CUDA top. It depends on your needs. If you are using OF, then it should have code that handles the CUDA layer.
You really need some knowledge of CUDA to make a CUDA top. It requires you to handle your textures on the GPU yourself. The sample CUDA TOP should give you a clue.
If the CUDA functions are already built inside of OF, then you might be better off just doing the regular OpenGL TOP, and use OF to handle the hand offs of textures on the GPU.
I think your problem might be thinking of it from a standard CPU programming perspective, where you can just hand off a pointer. It doesn’t quite work like that in GPU land.
Hi Mouren,
Thanks for the answer. You’re right, i think Cuda is not necessary, i can use textures.
I wanted to try Cuda In/Out (i succeeded) but that seems a difficult way.
My purpose is to use Gpu texture (so OpenGL Top as you wrote) directly with libtorch, so i do not want Gpu->Cpu and Cpu->Gpu Transfer.
Thanks