mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-23 16:30:07 +00:00
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:
parent
7dc52d2a64
commit
38ba53404e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user