Skip to content

Commit f748626

Browse files
committed
Deprecate Clang < 7 and MSVC < 2019 (aka 19.20, aka 16.0, aka 14.20).
This reflects the reality of our test coverage.
1 parent 4fd1b54 commit f748626

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ CI Status
9898

9999
<a href='https://gpuci.gpuopenanalytics.com/job/nvidia/job/thrust/job/prb/job/thrust-cpu-build/CXX_TYPE=nvcxx,CXX_VER=20.9,OS_TYPE=ubuntu,OS_VER=20.04,SDK_TYPE=nvhpc,SDK_VER=20.9-devel/'><img src='https://gpuci.gpuopenanalytics.com/job/nvidia/job/thrust/job/prb/job/thrust-cpu-build/CXX_TYPE=nvcxx,CXX_VER=20.9,OS_TYPE=ubuntu,OS_VER=20.04,SDK_TYPE=nvhpc,SDK_VER=20.9-devel/badge/icon?subject=NVC%2B%2B%2020.9%20build%20and%20host%20tests'></a>
100100

101+
Supported Compilers
102+
-------------------
103+
104+
Thrust is regularly tested using the specified versions of the following
105+
compilers. Unsupported versions may emit deprecation warnings, which can be
106+
silenced by defining THRUST_IGNORE_DEPRECATED_COMPILER during compilation.
107+
108+
- NVCC 11.0+
109+
- NVC++ 20.9+
110+
- GCC 5+
111+
- Clang 7+
112+
- MSVC 2019+ (19.20/16.0/14.20)
113+
101114
Releases
102115
--------
103116

thrust/detail/config/cpp_dialect.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@
9898
#endif
9999

100100
#define THRUST_COMPILER_DEPRECATION(REQ, FIX) \
101-
THRUST_COMP_DEPR_IMPL(Thrust requires REQ. Please FIX. Define THRUST_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.)
101+
THRUST_COMP_DEPR_IMPL(Thrust requires at least REQ. Please FIX. Define THRUST_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.)
102102

103103
// Minimum required compiler checks:
104104
#ifndef THRUST_IGNORE_DEPRECATED_COMPILER
105105
# if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC && THRUST_GCC_VERSION < 50000
106106
THRUST_COMPILER_DEPRECATION(GCC 5.0, upgrade your compiler);
107107
# endif
108-
# if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG && THRUST_CLANG_VERSION < 60000
109-
THRUST_COMPILER_DEPRECATION(Clang 6.0, upgrade your compiler);
108+
# if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG && THRUST_CLANG_VERSION < 70000
109+
THRUST_COMPILER_DEPRECATION(Clang 7.0, upgrade your compiler);
110110
# endif
111-
# if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC && THRUST_MSVC_VERSION < 1910
112-
THRUST_COMPILER_DEPRECATION(MSVC 2017, upgrade your compiler);
111+
# if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC && THRUST_MSVC_VERSION < 1920
112+
THRUST_COMPILER_DEPRECATION(MSVC 2019 (19.20/16.0/14.20), upgrade your compiler);
113113
# endif
114114
#endif
115115

0 commit comments

Comments
 (0)