在用Visual Studio 2017编译CUDA时

c:\programdata\nvidia corporation\cuda samples\v10.1\3_imaging\bilateralfilter\bilateralfilter.cpp:389 code=304(cudaErrorOperatingSystem) “cudaGraphicsGLRegisterBuffer(&cuda_pbo_resource, pbo, cudaGraphicsMapFlagsWriteDiscard)”. Thank you.

https://devtalk.nvidia.com/default/topic/1006671/cudagraphicsglregisterbuffer-error-63-on-windows/

https://devtalk.nvidia.com/default/topic/1035816/cugraphicsglregisterimage-operating-system-error/