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

Commit 32ffb6e

Browse files
authored
Merge pull request #1761 from ericniebler/remove-THRUST_DEVICE_BACKEND
remove deprecated support for the THRUST_DEVICE_BACKEND macro
2 parents c717f49 + df32883 commit 32ffb6e

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

thrust/detail/config/device_system.h

+1-18
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,8 @@
2626
#define THRUST_DEVICE_SYSTEM THRUST_DEVICE_SYSTEM_CUDA
2727
#endif // THRUST_DEVICE_SYSTEM
2828

29-
// XXX make the use of THRUST_DEVICE_BACKEND an error in Thrust 1.7
30-
// XXX eliminate the following in Thrust 1.7
31-
32-
#define THRUST_DEVICE_BACKEND_CUDA THRUST_DEVICE_SYSTEM_CUDA
33-
#define THRUST_DEVICE_BACKEND_OMP THRUST_DEVICE_SYSTEM_OMP
34-
#define THRUST_DEVICE_BACKEND_TBB THRUST_DEVICE_SYSTEM_TBB
35-
3629
#ifdef THRUST_DEVICE_BACKEND
37-
# if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC
38-
# pragma message("----------------------------------------------------------------------------------")
39-
# pragma message("| WARNING: THRUST_DEVICE_BACKEND is deprecated; use THRUST_DEVICE_SYSTEM instead |")
40-
# pragma message("----------------------------------------------------------------------------------")
41-
# else
42-
# warning ----------------------------------------------------------------------------------
43-
# warning | WARNING: THRUST_DEVICE_BACKEND is deprecated; use THRUST_DEVICE_SYSTEM instead |
44-
# warning ----------------------------------------------------------------------------------
45-
# endif // THRUST_HOST_COMPILER
46-
# undef THRUST_DEVICE_SYSTEM
47-
# define THRUST_DEVICE_SYSTEM THRUST_DEVICE_BACKEND
30+
# error THRUST_DEVICE_BACKEND is no longer supported; use THRUST_DEVICE_SYSTEM instead.
4831
#endif // THRUST_DEVICE_BACKEND
4932

5033
#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA

thrust/detail/config/host_system.h

+1-18
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,8 @@
2525
#define THRUST_HOST_SYSTEM THRUST_HOST_SYSTEM_CPP
2626
#endif // THRUST_HOST_SYSTEM
2727

28-
// XXX make the use of THRUST_HOST_BACKEND an error in Thrust 1.7
29-
// XXX eliminate the following in Thrust 1.7
30-
31-
#define THRUST_HOST_BACKEND_CPP THRUST_HOST_SYSTEM_CPP
32-
#define THRUST_HOST_BACKEND_OMP THRUST_HOST_SYSTEM_OMP
33-
#define THRUST_HOST_BACKEND_TBB THRUST_HOST_SYSTEM_TBB
34-
3528
#ifdef THRUST_HOST_BACKEND
36-
# if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC
37-
# pragma message("------------------------------------------------------------------------------")
38-
# pragma message("| WARNING: THRUST_HOST_BACKEND is deprecated; use THRUST_HOST_SYSTEM instead |")
39-
# pragma message("------------------------------------------------------------------------------")
40-
# else
41-
# warning ------------------------------------------------------------------------------
42-
# warning | WARNING: THRUST_HOST_BACKEND is deprecated; use THRUST_HOST_SYSTEM instead |
43-
# warning ------------------------------------------------------------------------------
44-
# endif // THRUST_HOST_COMPILER
45-
# undef THRUST_HOST_SYSTEM
46-
# define THRUST_HOST_SYSTEM THRUST_HOST_BACKEND
29+
# error THRUST_HOST_BACKEND is no longer supported; use THRUST_HOST_SYSTEM instead.
4730
#endif // THRUST_HOST_BACKEND
4831

4932
#if THRUST_HOST_SYSTEM == THRUST_HOST_SYSTEM_CPP

thrust/memory.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ THRUST_NAMESPACE_BEGIN
4848
* type ensures type safety when dispatching standard algorithms on ranges resident in memory.
4949
*
5050
* \p pointer generalizes \p device_ptr by relaxing the backend system associated with the \p pointer.
51-
* Instead of the backend system specified by \p THRUST_DEFAULT_DEVICE_BACKEND, \p pointer's
51+
* Instead of the backend system specified by \p THRUST_DEVICE_SYSTEM, \p pointer's
5252
* system is given by its second template parameter, \p Tag. For the purpose of Thrust dispatch,
5353
* <tt>device_ptr<Element></tt> and <tt>pointer<Element,device_system_tag></tt> are considered equivalent.
5454
*

0 commit comments

Comments
 (0)