diff --git a/thrust/device_allocator.h b/thrust/device_allocator.h index d920c48425..356a4f96b2 100644 --- a/thrust/device_allocator.h +++ b/thrust/device_allocator.h @@ -115,7 +115,7 @@ class device_allocator }; /*! Default constructor has no effect. */ - __host__ + __host__ __device__ device_allocator() {} /*! Copy constructor has no effect. */ @@ -124,15 +124,13 @@ class device_allocator /*! Constructor from other \p device_allocator has no effect. */ template - __host__ + __host__ __device__ device_allocator(const device_allocator& other) : base(other) {} -#if THRUST_CPP_DIALECT >= 2011 device_allocator & operator=(const device_allocator &) = default; -#endif /*! Destructor has no effect. */ - __host__ + __host__ __device__ ~device_allocator() {} }; diff --git a/thrust/mr/allocator.h b/thrust/mr/allocator.h index 1ad3be48d9..1381ca95c4 100644 --- a/thrust/mr/allocator.h +++ b/thrust/mr/allocator.h @@ -220,7 +220,8 @@ class stateless_resource_allocator : public thrust::mr::allocator /*! Default constructor. Uses \p get_global_resource to get the global instance of \p Upstream and initializes the * \p allocator base subobject with that resource. */ - __host__ + __thrust_exec_check_disable__ + __host__ __device__ stateless_resource_allocator() : base(get_global_resource()) { } diff --git a/thrust/system/cuda/detail/par.h b/thrust/system/cuda/detail/par.h index bd5953139d..42c701ca70 100644 --- a/thrust/system/cuda/detail/par.h +++ b/thrust/system/cuda/detail/par.h @@ -48,6 +48,7 @@ struct execute_on_stream_base : execution_policy cudaStream_t stream; public: + __thrust_exec_check_disable__ __host__ __device__ execute_on_stream_base(cudaStream_t stream_ = default_stream()) : stream(stream_){}