在 cuda 11.3 程序中,我使用
tex2D(texture<T, 2, cudaReadModeElementType>, float, float)
Run Code Online (Sandbox Code Playgroud)
在texture_fetch_functions.h(198)中声明已弃用。什么取代它?我该如何使用它?
警告:函数“tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]” 2>C:\Program Files\NVIDIA GPU Compute Toolkit\CUDA\v11.3\include\texture_fetch_functions.h (198):此处已被宣布弃用