SWDEV-476869 - Add mapping to cudaGetTextureReference

Change-Id: I85a6e4423d7b8b88ed18629225c583b87551414f


[ROCm/hipother commit: ccd569c4bb]
This commit is contained in:
Marko Arandjelovic
2024-07-31 15:21:46 +02:00
parent 71a65f5643
commit d5139b29ef
@@ -3259,6 +3259,11 @@ inline static hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc* pResDe
}
#if CUDA_VERSION < CUDA_12000
__HIP_DEPRECATED inline static hipError_t hipGetTextureReference(const textureReference** texref,
const void* symbol) {
return hipCUDAErrorTohipError(cudaGetTextureReference(texref, symbol));
}
__HIP_DEPRECATED inline static hipError_t hipGetTextureAlignmentOffset(
size_t* offset, const struct textureReference* texref) {
return hipCUDAErrorTohipError(cudaGetTextureAlignmentOffset(offset,texref));