Caught a critical exception: cuda_malloc(): out of memory!

when I use cuda and optix for gpu raytracing in mitsuba2, it throws an error while begin render:
Caught a critical exception: cuda_malloc(): out of memory!
my system spce:
win10 home x64, vs2019, cuda11, optix7, RTX3070 laptop

So you got your build issue sorted out and now it’s not working for you because there is some CUDA out-of-memory issue when doing what exactly?

Could it be that you simply loaded a scene which requires more memory than your graphics board has?
Or does this happen with even the smallest possible scene?

In any case, you need to raise such problems as issues on the Mitsuba 2 github repository instead.

this is a small scene like cornell box, so this should not happen, I don’t know why, and I had posted this issue on Mistuba2 github.