Skip to content

Commit

Permalink
Squashed 'include/alpaka/' changes from 1461e64..955fa97
Browse files Browse the repository at this point in the history
955fa97 fix include that is only required if OpenMP is included
395abe2 fix missing header
40bb1c0 allow zero sized allocations

git-subtree-dir: include/alpaka
git-subtree-split: 955fa9794e8bad10cdcf7c708f2e1a0abb5d4e27
  • Loading branch information
erikzenker committed Sep 2, 2015
1 parent 23842e6 commit 884eb56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion include/alpaka/alpaka.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
#include <alpaka/atomic/AtomicCudaBuiltIn.hpp>
#endif
#include <alpaka/atomic/AtomicNoOp.hpp>
#include <alpaka/atomic/AtomicOmpCritSec.hpp>
#ifdef _OPENMP
#include <alpaka/atomic/AtomicOmpCritSec.hpp>
#endif
#include <alpaka/atomic/AtomicStlLock.hpp>
#include <alpaka/atomic/Op.hpp>
#include <alpaka/atomic/Traits.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/alpaka/extent/Traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <alpaka/core/IntegerSequence.hpp> // integer_sequence
#include <alpaka/core/Common.hpp> // ALPAKA_FN_HOST_ACC
#include <alpaka/core/Fold.hpp> // core::foldr
#include <alpaka/size/Traits.hpp> // size::Size

#if !defined(__CUDA_ARCH__)
#include <boost/core/ignore_unused.hpp> // boost::ignore_unused
Expand Down
1 change: 0 additions & 1 deletion include/alpaka/mem/alloc/AllocCpuBoostAligned.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ namespace alpaka
std::size_t const & sizeElems)
-> T *
{
assert(sizeElems>0);
boost::ignore_unused(alloc);
return
reinterpret_cast<T *>(
Expand Down
1 change: 0 additions & 1 deletion include/alpaka/mem/alloc/AllocCpuNew.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ namespace alpaka
std::size_t const & sizeElems)
-> T *
{
assert(sizeElems>0);
boost::ignore_unused(alloc);
return new T[sizeElems];
}
Expand Down

0 comments on commit 884eb56

Please sign in to comment.