I was wondering if there is a way to allocate memory in rg, return the pointer and size of that buffer and then read it out in my main.cpp
As far as Visual studio tells me, i am not allowed to use cudaMalloc in the rg(). Is there another practice how i can achieve this? Or can I only allocate memory on the device from my host main.cpp before i start launching rays?
Thank you for your help and stay healthy!