Skip to content

Commit fcd138b

Browse files
authored
Merge pull request NVIDIA#1372 from allisonvacanti/compiler_deprecations-1.12
Deprecate Clang < 7 and MSVC < 2019 (aka 19.20, aka 16.0, aka 14.20).
2 parents d233f0c + f748626 commit fcd138b

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
@@ -123,6 +123,19 @@ CI Status
123123

124124
<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>
125125

126+
Supported Compilers
127+
-------------------
128+
129+
Thrust is regularly tested using the specified versions of the following
130+
compilers. Unsupported versions may emit deprecation warnings, which can be
131+
silenced by defining THRUST_IGNORE_DEPRECATED_COMPILER during compilation.
132+
133+
- NVCC 11.0+
134+
- NVC++ 20.9+
135+
- GCC 5+
136+
- Clang 7+
137+
- MSVC 2019+ (19.20/16.0/14.20)
138+
126139
Releases
127140
--------
128141

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)