Skip to content

Commit

Permalink
Don't #include a cuda-specific header in temporary_allocator unless t…
Browse files Browse the repository at this point in the history
…he compiler is nvcc

Addresses the regression mentioned in NVIDIA#386
  • Loading branch information
jaredhoberock committed Feb 27, 2015
1 parent c972aca commit 51dcd09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion thrust/detail/allocator/temporary_allocator.inl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
#include <thrust/detail/allocator/temporary_allocator.h>
#include <thrust/detail/temporary_buffer.h>
#include <thrust/system/detail/bad_alloc.h>
#include <thrust/system/cuda/detail/terminate.h>
#include <cassert>

#ifdef __NVCC__
#include <thrust/system/cuda/detail/terminate.h>
#endif

namespace thrust
{
namespace detail
Expand Down

0 comments on commit 51dcd09

Please sign in to comment.