Hi-
I am using some of the SDK examples on a headless server. I ssh onto a machine with 3 K20s. Those examples that support file output to PPM image seem to work fine.
However, when I compare sample5 and sample5pp (demoing conversion from C to C++), I get different behavior.
./sample5 -f output/test.ppm → works
./sample5pp -f output/test.ppm → throws an exception: function _rtContextLaunch2D caught exception CUDA error: cuGLGetDevices() returned (201): Invalid context
Any idea why the C++ version throws this exception? I’d prefer to use the C++ syntax if possible.