From ea233f3fe8eac68676e14319df6eed43dc754be3 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Mon, 16 May 2022 15:38:55 -0700 Subject: [PATCH] Don't specialize is_system_tag for host_system_tag when compiling for device --- thrust/iterator/detail/host_system_tag.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thrust/iterator/detail/host_system_tag.h b/thrust/iterator/detail/host_system_tag.h index 872c29e6a..fa2cfe3f9 100644 --- a/thrust/iterator/detail/host_system_tag.h +++ b/thrust/iterator/detail/host_system_tag.h @@ -27,6 +27,7 @@ THRUST_NAMESPACE_BEGIN typedef thrust::system::__THRUST_HOST_SYSTEM_NAMESPACE::tag host_system_tag; +#if THRUST_HOST_SYSTEM != THRUST_DEVICE_SYSTEM namespace detail { template <> @@ -35,5 +36,6 @@ struct is_system_tag {}; } +#endif THRUST_NAMESPACE_END