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

Commit 82d037e

Browse files
committed
remove deprecated support for the THRUST_DEVICE_BACKEND macro
1 parent f3c28da commit 82d037e

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

thrust/detail/config/device_system.h

+1-17
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,9 @@
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 |")
30+
# error THRUST_DEVICE_BACKEND is no longer supported; use THRUST_DEVICE_SYSTEM instead.
4031
# 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
4832
#endif // THRUST_DEVICE_BACKEND
4933

5034
#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA

0 commit comments

Comments
 (0)