aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2025-08-01 16:27:56 -0700
committerGitHub <noreply@github.com>2025-08-01 16:27:56 -0700
commit3b92e83121e6ba23665d7f60ad5474d4c7f5fe03 (patch)
tree731694b1b35f89061843961dca2411016f3a445f /clang/lib
parent4d1ae58d9e1d679cd0f35ce935579df221b14882 (diff)
downloadllvm-3b92e83121e6ba23665d7f60ad5474d4c7f5fe03.zip
llvm-3b92e83121e6ba23665d7f60ad5474d4c7f5fe03.tar.gz
llvm-3b92e83121e6ba23665d7f60ad5474d4c7f5fe03.tar.bz2
[CUDA] Do not include obsolete texture_fetch_functions.h (#151766)
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Headers/__clang_cuda_runtime_wrapper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Headers/__clang_cuda_runtime_wrapper.h b/clang/lib/Headers/__clang_cuda_runtime_wrapper.h
index 44934ba..b1e5924 100644
--- a/clang/lib/Headers/__clang_cuda_runtime_wrapper.h
+++ b/clang/lib/Headers/__clang_cuda_runtime_wrapper.h
@@ -385,7 +385,12 @@ __host__ __device__ void __nv_tex_surf_handler(const char *name, T *ptr,
#endif // CUDA_VERSION
#endif // __cplusplus >= 201103L && CUDA_VERSION >= 9000
#include "surface_indirect_functions.h"
+#if CUDA_VERSION < 13000
+// Direct texture fetch functions had been deprecated since CUDA-11.
+// The file in CUDA-12 only carried unused texture types, and is no longer
+// needed.
#include "texture_fetch_functions.h"
+#endif // CUDA_VERSION < 13000
#include "texture_indirect_functions.h"
// Restore state of __CUDA_ARCH__ and __THROW we had on entry.