This repository was archived by the owner on Mar 21, 2024. It is now read-only.
File tree 3 files changed +3
-37
lines changed
3 files changed +3
-37
lines changed Original file line number Diff line number Diff line change 26
26
#define THRUST_DEVICE_SYSTEM THRUST_DEVICE_SYSTEM_CUDA
27
27
#endif // THRUST_DEVICE_SYSTEM
28
28
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
-
36
29
#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.
48
31
#endif // THRUST_DEVICE_BACKEND
49
32
50
33
#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA
Original file line number Diff line number Diff line change 25
25
#define THRUST_HOST_SYSTEM THRUST_HOST_SYSTEM_CPP
26
26
#endif // THRUST_HOST_SYSTEM
27
27
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
-
35
28
#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.
47
30
#endif // THRUST_HOST_BACKEND
48
31
49
32
#if THRUST_HOST_SYSTEM == THRUST_HOST_SYSTEM_CPP
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ THRUST_NAMESPACE_BEGIN
48
48
* type ensures type safety when dispatching standard algorithms on ranges resident in memory.
49
49
*
50
50
* \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
52
52
* system is given by its second template parameter, \p Tag. For the purpose of Thrust dispatch,
53
53
* <tt>device_ptr<Element></tt> and <tt>pointer<Element,device_system_tag></tt> are considered equivalent.
54
54
*
You can’t perform that action at this time.
0 commit comments