Skip to content

Commit 7ad3428

Browse files
committed
[CUDA] Do not include obsolete texture_fetch_functions.h
1 parent 9fdb5e1 commit 7ad3428

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Headers/__clang_cuda_runtime_wrapper.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,11 @@ __host__ __device__ void __nv_tex_surf_handler(const char *name, T *ptr,
385385
#endif // CUDA_VERSION
386386
#endif // __cplusplus >= 201103L && CUDA_VERSION >= 9000
387387
#include "surface_indirect_functions.h"
388+
#if CUDA_VERSION < 13000
389+
// Direct texture fetch functions had been deprecated since CUDA-11.
390+
// The file in CUDA-12 only carried unused texture types, and is no longer needed.
388391
#include "texture_fetch_functions.h"
392+
#endif // CUDA_VERSION < 13000
389393
#include "texture_indirect_functions.h"
390394

391395
// Restore state of __CUDA_ARCH__ and __THROW we had on entry.

0 commit comments

Comments
 (0)