alpaka
Abstraction Library for Parallel Kernel Acceleration
Align.hpp File Reference
#include "alpaka/core/BoostPredef.hpp"
#include <cstddef>
#include <type_traits>

Go to the source code of this file.

Classes

struct  alpaka::core::align::OptimalAlignment< TsizeBytes >
 Calculates the optimal alignment for data of the given size. More...
 
struct  alpaka::core::detail::RoundUpToPowerOfTwoHelper< N, TisPowerTwo >
 Base case for N being a power of two. More...
 
struct  alpaka::core::detail::RoundUpToPowerOfTwoHelper< N, false >
 Case for N not being a power of two. More...
 
struct  alpaka::core::RoundUpToPowerOfTwo< N >
 Rounds to the next higher power of two (if not already power of two). More...
 

Namespaces

 alpaka
 The alpaka accelerator library.
 
 alpaka::core
 
 alpaka::core::align
 The alignment specifics.
 
 alpaka::core::detail
 Defines implementation details that should not be used directly by the user.
 

Macros

#define ALPAKA_OPTIMAL_ALIGNMENT(...)    ::alpaka::core::align::OptimalAlignment<sizeof(std::remove_cv_t<__VA_ARGS__>)>::value
 

Macro Definition Documentation

◆ ALPAKA_OPTIMAL_ALIGNMENT

#define ALPAKA_OPTIMAL_ALIGNMENT (   ...)     ::alpaka::core::align::OptimalAlignment<sizeof(std::remove_cv_t<__VA_ARGS__>)>::value

Definition at line 64 of file Align.hpp.