2
0

Merge pull request #563 from gargrahul/add_gettexrefoffset_nvcc

Add hipGetTextureAlignmentOffset and hipGetChanDesc on NVCC path
Este cometimento está contido em:
Maneesh Gupta
2018-07-11 15:01:20 +05:30
cometido por GitHub
ascendente 6bf76348e1 bab48b86a6
cometimento 56984d04b0
+10
Ver ficheiro
@@ -1247,6 +1247,16 @@ inline static hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc* pResDe
hipTextureObject_t textureObject) {
return hipCUDAErrorTohipError(cudaGetTextureObjectResourceDesc( pResDesc, textureObject));
}
inline static hipError_t hipGetTextureAlignmentOffset(size_t* offset, const textureReference* texref)
{
return hipCUDAErrorTohipError(cudaGetTextureAlignmentOffset(offset,texref));
}
inline static hipError_t hipGetChannelDesc(hipChannelFormatDesc* desc, hipArray_const_t array)
{
return hipCUDAErrorTohipError(cudaGetChannelDesc(desc,array));
}
#endif //__CUDACC__
#endif // HIP_INCLUDE_HIP_NVCC_DETAIL_HIP_RUNTIME_API_H