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

Commit

Permalink
Fix some new and exciting exec_space [subobject] warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Jan 24, 2022
1 parent 58db5f8 commit 5159454
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions thrust/device_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class device_allocator
};

/*! Default constructor has no effect. */
__host__
__host__ __device__
device_allocator() {}

/*! Copy constructor has no effect. */
Expand All @@ -124,15 +124,13 @@ class device_allocator

/*! Constructor from other \p device_allocator has no effect. */
template<typename U>
__host__
__host__ __device__
device_allocator(const device_allocator<U>& 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() {}
};

Expand Down
3 changes: 2 additions & 1 deletion thrust/mr/allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ class stateless_resource_allocator : public thrust::mr::allocator<T, Upstream>
/*! 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<Upstream>())
{
}
Expand Down
1 change: 1 addition & 0 deletions thrust/system/cuda/detail/par.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct execute_on_stream_base : execution_policy<Derived>
cudaStream_t stream;

public:
__thrust_exec_check_disable__
__host__ __device__
execute_on_stream_base(cudaStream_t stream_ = default_stream())
: stream(stream_){}
Expand Down

0 comments on commit 5159454

Please sign in to comment.