adding THCudaTensor_getTextureObject
replacing checkCudaErrors with more traditional error checking