Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion libcudacxx/include/cuda/__internal/dlpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@

#if _CCCL_HAS_DLPACK()

# include <dlpack/dlpack.h>
# if __has_include(<dlpack/dlpack.h>)
# include <dlpack/dlpack.h>
# elif __has_include(<dlpack.h>)
# include <dlpack.h>
# endif

# define _CCCL_DLPACK_AT_LEAST(_MAJOR, _MINOR) \
(DLPACK_MAJOR_VERSION > (_MAJOR) || (DLPACK_MAJOR_VERSION == (_MAJOR) && DLPACK_MINOR_VERSION >= (_MINOR)))
Expand Down
3 changes: 2 additions & 1 deletion libcudacxx/include/cuda/std/__internal/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@

// Third party libraries

#if __has_include(<dlpack/dlpack.h>) && !_CCCL_COMPILER(NVRTC) && !defined(CCCL_DISABLE_DLPACK)
#if (__has_include(<dlpack/dlpack.h>) || __has_include(<dlpack.h>)) && \
!_CCCL_COMPILER(NVRTC) && !defined(CCCL_DISABLE_DLPACK)
# define _CCCL_HAS_DLPACK() 1
#else // ^^^ has dlpack ^^^ / vvv no dlpack vvv
# define _CCCL_HAS_DLPACK() 0
Expand Down
Loading