cutGetMaxGflopsDeviceId seems failing only with 5.0dev driver.

so enabled this function and will work with cuda 4.2 sdk
This commit is contained in:
Takahito Tejima 2012-06-20 09:31:22 -07:00
parent 7dc52d2a64
commit 38ba53404e

View File

@ -624,10 +624,9 @@ int main(int argc, char ** argv) {
#if OPENSUBDIV_HAS_CUDA
OpenSubdiv::OsdCudaKernelDispatcher::Register();
// still this function crashes in linux. cudaGetDeviceProperties overrun stack..?
#if defined(_WIN32)
// Note: This function randomly crashes with linux 5.0-dev driver.
// cudaGetDeviceProperties overrun stack..?
cudaGLSetGLDevice( cutGetMaxGflopsDeviceId() );
#endif
#endif
int kmenu = glutCreateMenu(kernelMenu);