Thanks. But I only have a GTX 570 graphic card.
and I use the code
std::vector enabled_devices = rtContext->getEnabledDevices();
only one device index is in this vector.
and I use your code as
int max_num_devices = Context::getDeviceCount();
int actual_num_devices = std::min( max_num_devices, std::max( 1, max_num_devices ) );
std::vector devs(actual_num_devices);
for( int i = 0; i < max_num_devices; ++i ) devs[i] = i;
rtContext->setDevices( devs.begin(), devs.end() );
the error is still the same.