Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Deprecate Clang < 7 and MSVC < 2019 (aka 19.20, aka 16.0, aka 14.20). #256

Merged
merged 1 commit into from
Jan 21, 2021
Merged
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
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ The thread block uses these storage types to statically allocate the union of
shared memory needed by the thread block. (Alternatively these storage types
could be aliased to global memory allocations).

<br><hr>
<h3>Supported Compilers</h3>

CUB is regularly tested using the specified versions of the following
compilers. Unsupported versions may emit deprecation warnings, which can be
silenced by defining CUB_IGNORE_DEPRECATED_COMPILER during compilation.

- NVCC 11.0+
- NVC++ 20.9+
- GCC 5+
- Clang 7+
- MSVC 2019+ (19.20/16.0/14.20)

<br><hr>
<h3>Releases</h3>

Expand Down
10 changes: 5 additions & 5 deletions cub/util_cpp_dialect.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,18 @@
#endif

#define CUB_COMPILER_DEPRECATION(REQ, FIX) \
CUB_COMP_DEPR_IMPL(CUB requires REQ. Please FIX. Define CUB_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.)
CUB_COMP_DEPR_IMPL(CUB requires at least REQ. Please FIX. Define CUB_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.)

// Minimum required compiler checks:
#ifndef CUB_IGNORE_DEPRECATED_COMPILER
# if CUB_HOST_COMPILER == CUB_HOST_COMPILER_GCC && CUB_GCC_VERSION < 50000
CUB_COMPILER_DEPRECATION(GCC 5.0, upgrade your compiler);
# endif
# if CUB_HOST_COMPILER == CUB_HOST_COMPILER_CLANG && CUB_CLANG_VERSION < 60000
CUB_COMPILER_DEPRECATION(Clang 6.0, upgrade your compiler);
# if CUB_HOST_COMPILER == CUB_HOST_COMPILER_CLANG && CUB_CLANG_VERSION < 70000
CUB_COMPILER_DEPRECATION(Clang 7.0, upgrade your compiler);
# endif
# if CUB_HOST_COMPILER == CUB_HOST_COMPILER_MSVC && CUB_MSVC_VERSION < 1910
CUB_COMPILER_DEPRECATION(MSVC 2017, upgrade your compiler);
# if CUB_HOST_COMPILER == CUB_HOST_COMPILER_MSVC && CUB_MSVC_VERSION < 1920
CUB_COMPILER_DEPRECATION(MSVC 2019 (19.20/16.0/14.20), upgrade your compiler);
# endif
#endif

Expand Down