Hi,
the following code:
QVector<int> list = vecDevices[index];
m_context->setDevices( list.begin(), list.end() );
cudaThreadSynchronize();
cudaError_t error = cudaGetLastError();
if(error != cudaSuccess)
qDebug() << "error " << __FILE__ << ":" << __LINE__ << cudaGetErrorString(error);
outputs the following message.
error /home/ben/workspace/USSCudaLib/src/SceneWorld.cpp : 273 cannot set while device is active in this process
In my opinion setDevices (alias rtContextSetDevices) should’ve already catched the error and not my additional check afterwards.
Benny