Hello,
I am new to Optix.
My code runs on Optix 3.9.1 successfully.
But when I change environment into Optix 4.0.2, my code isn’t working.
Compiling is alright, but it isn’t running.
When I call ‘m_context->launch( 0, buffer_width, buffer_height );’ first,
Here is the error:
‘OptiX Error: ‘Memory allocation failed (Details: Function “_rtContextLaunch2D” c
aught exception: Encountered a CUDA error: driver().cuLaunchKernel( m_function,
gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, s
tream.get(), kernelParams, extra ) returned (2): Out of memory)’’
So I think my stacksize is too small, i change the stacksize to 128000
with the code ‘m_context->setStackSize( 128000 );’
And I call ‘m_context->launch( 0, buffer_width, buffer_height );’ again,
The error changes:
‘OptiX Error: ‘Invalid value (Details: Function “_rtContextLaunch2D” caught excep
tion: Encountered a CUDA error: driver().cuLaunchKernel( m_function, gridDimX, g
ridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream.get()
, kernelParams, extra ) returned (1): Invalid value)’’
So i don’t know what happened. I couldn’t fix these problems.
Could you give me some suggestions? I really want to know how to debug with optix Program easily.
Thanks for your help.