I have been building a ray tracing application using pure CUDA, now I am trying to port it to Optix. My entire application’s GPU memory management is using cudaMallocManaged.
When I call optixAccelBuild, it complains as such:
“ERROR, “outputBuffer” does not point to memory allocated with cudaMalloc() or cuMemAlloc()”
I assumed that OptiX (at least for writing data) required cudaMalloc usage. However, my triangle data pointers are from cudaMallocManaged and the function does not throw an error. I fear that this may be a silent error.
My question is; Can OptiX API read memory from pointers that are created with “cudaMallocManaged”? (SBT (or a pointer inside of SBT), etc.)
Thanks in Advance,