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

Commit

Permalink
Remove __device__ from CUDA MR-based device allocators to fix obscu…
Browse files Browse the repository at this point in the history
…re "host

function called from host device function" warning that occurs when you use the
new Thrust MR-based allocators.

Reviewed-by: Allison Vacanti <alliepiper16@gmail.com>
Reviewed-by: Michał 'Griwes' Dominiak <griwes@griwes.info>
  • Loading branch information
brycelelbach committed Mar 27, 2020
1 parent 12fee82 commit d43f285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thrust/system/cuda/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ struct allocator

/*! No-argument constructor has no effect.
*/
__host__ __device__
__host__
inline allocator() {}

/*! Copy constructor has no effect.
*/
__host__ __device__
inline allocator(const allocator & other) : base(other) {}
inline allocator(const allocator & other) : base(other) {}

/*! Constructor from other \p allocator has no effect.
*/
Expand Down

0 comments on commit d43f285

Please sign in to comment.