Merge pull request #1515 from ansurya/tex_unbind_issue_fix

Fix undefined ref to hipUnbindTexture for texture types
Этот коммит содержится в:
Rahul Garg
2019-10-30 17:54:15 -07:00
коммит произвёл GitHub
родитель 961bc5737e 9332a39838
Коммит aeb7cebbad
5 изменённых файлов: 11 добавлений и 4 удалений
+5
Просмотреть файл
@@ -1398,6 +1398,11 @@ inline static hipError_t hipUnbindTexture(struct texture<T, dim, readMode>* tex)
return hipCUDAErrorTohipError(cudaUnbindTexture(tex));
}
template <class T, int dim, enum hipTextureReadMode readMode>
inline static hipError_t hipUnbindTexture(struct texture<T, dim, readMode> &tex) {
return hipCUDAErrorTohipError(cudaUnbindTexture(tex));
}
inline static hipError_t hipBindTexture(size_t* offset, textureReference* tex, const void* devPtr,
const hipChannelFormatDesc* desc, size_t size = UINT_MAX){
return hipCUDAErrorTohipError(cudaBindTexture(offset, tex, devPtr, desc, size));