PixarAnimationStudios / OpenSubdiv

An Open-Source subdivision surface library.
graphics.pixar.com/opensubdiv
Other
2.9k stars 561 forks source link

Deprecated Functions in Cuda v10.0 Issue #997

Open adam-hartshorne opened 6 years ago

adam-hartshorne commented 6 years ago

Looks like Opensubdiv uses a few functions that are now deprecated in Cuda v10.0

examples\common\cudadevicecontext.cpp(139): error C2220: warning treated as error - no 'object' file generated
examples\common\cudadevicecontext.cpp(139): warning C4996: 'cudaGLSetGLDevice': was declared deprecated
10>c:\program files\nvidia gpu computing toolkit\cuda\v10.0\include\cuda_gl_interop.h(305): note: see declaration of 'cudaGLSetGLDevice'
examples\common\cudadevicecontext.cpp(148): warning C4996: 'cudaD3D11SetDirect3DDevice': was declared deprecated
10>c:\program files\nvidia gpu computing toolkit\cuda\v10.0\include\cuda_d3d11_interop.h(314): note: see declaration of 'cudaD3D11SetDirect3DDevice'

opensubdiv\osd\cudaevaluator.cpp(379): error C2220: warning treated as error - no 'object' file generated
opensubdiv\osd\cudaevaluator.cpp(379): warning C4996: 'cudaThreadSynchronize': was declared deprecated
9>c:\program files\nvidia gpu computing toolkit\cuda\v10.0\include\cuda_runtime_api.h(947): note: see declaration of 'cudaThreadSynchronize'
jtran56 commented 6 years ago

Filed as internal issue #OSD-242.