#include <rmm/detail/export.hpp>#include <cassert>#include <cstddef>

Go to the source code of this file.
Namespaces | |
| rmm | |
| RAPIDS Memory Manager - The top-level namespace for all RMM functionality. | |
Functions | |
| bool | rmm::is_pow2 (std::size_t value) noexcept |
Returns whether or not value is a power of 2. More... | |
| bool | rmm::is_supported_alignment (std::size_t alignment) noexcept |
Returns whether or not alignment is a valid memory alignment. More... | |
| std::size_t | rmm::align_up (std::size_t value, std::size_t alignment) noexcept |
| Align up to nearest multiple of specified power of 2. More... | |
| std::size_t | rmm::align_down (std::size_t value, std::size_t alignment) noexcept |
| Align down to the nearest multiple of specified power of 2. More... | |
| bool | rmm::is_aligned (std::size_t value, std::size_t alignment) noexcept |
| Checks whether a value is aligned to a multiple of a specified power of 2. More... | |
| bool | rmm::is_pointer_aligned (void *ptr, std::size_t alignment=rmm::CUDA_ALLOCATION_ALIGNMENT) noexcept |
Checks whether the provided pointer is aligned to a specified alignment. More... | |
Variables | |
| static constexpr std::size_t | rmm::CUDA_ALLOCATION_ALIGNMENT {256} |
| Default alignment used for CUDA memory allocation. | |