"_rtContextLaunch2D" caught C++ standard exception: invalid device function

Hi all,

I have an application that is using OptiX 2.5.1 under windows 7 64bit using Cuda 4.0. It runs smoothly on a machine with a gtx 580 gpu. Now, I switched to a new machine with a gt 640 and I get the following error message:

“_rtContextLaunch2D” caught C++ standard exception:
invalid device function

Does anybody have an idea where this error is trying to point me to.

Thanks already

The GTX580 is a Fermi GPU based board, the GT640 is based on the Kepler GPU architecture.
OptiX 2.5.1 doesn’t support Kepler. OptiX 2.6.0 added support for that GPU architecture.

When upgrading the OptiX SDK version anyway, I would recommend to use OptiX 3.0 which should be faster.

As CUDA Toolkit use version 4.2 or 5.0. I recommend the latter, it generates more optimal code. CUDA 5.5 isn’t supported by OptiX 3.0.

Thanks for the super fast reply !!!