Add an error check on updating cuda buffer.
Add an error check on updating cuda buffer.

anshuarya/OpenSubdiv,poljere/OpenSubdiv,c64kernal/OpenSubdiv,lookup1980/OpenSubdiv,takahito-tejima/OpenSubdiv,nyotis/OpenSubdiv,takahito-tejima/OpenSubdiv-exp,shengfuintel/OpenSubdiv,xldeveloper/OpenSubdiv,shengfuintel/OpenSubdiv,xldeveloper/OpenSubdiv,xldeveloper/OpenSubdiv,jcowles/OpenSubdiv,lookup1980/OpenSubdiv,takahito-tejima/OpenSubdiv,lookup1980/OpenSubdiv,shengfuintel/OpenSubdiv,nyotis/OpenSubdiv,jcowles/OpenSubdiv,anshuarya/OpenSubdiv,takahito-tejima/OpenSubdiv,takahito-tejima/OpenSubdiv-exp,takahito-tejima/OpenSubdiv-exp,jcowles/OpenSubdiv,nyotis/OpenSubdiv,c64kernal/OpenSubdiv,poljere/OpenSubdiv,anshuarya/OpenSubdiv,c64kernal/OpenSubdiv,poljere/OpenSubdiv,takahito-tejima/OpenSubdiv-exp