Add getTextureResourceDescriptor on NVCC

[ROCm/hip commit: 17bb8dbe86]
This commit is contained in:
Rahul Garg
2018-06-05 18:46:25 +05:30
parent eded0da7b5
commit 522677e2dd
@@ -1228,6 +1228,10 @@ inline static hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObjec
return hipCUDAErrorTohipError(cudaDestroySurfaceObject(surfaceObject));
}
inline static hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc* pResDesc,
hipTextureObject_t textureObject) {
return hipCUDAErrorTohipError(cudaGetTextureObjectResourceDesc( pResDesc, textureObject));
}
#endif //__CUDACC__
#endif // HIP_INCLUDE_HIP_NVCC_DETAIL_HIP_RUNTIME_API_H