函数 | 变量
aligned.hpp 文件参考
#include <rmm/detail/export.hpp>
#include <cassert>
#include <cstddef>
#include <cstdint>
aligned.hpp 的包含依赖图
此图显示了哪些文件直接或间接包含了此文件

转到此文件的源代码。

函数

constexpr bool rmm::is_pow2 (std::size_t value) noexcept
 返回 `value` 是否为 2 的幂。 更多...
 
constexpr bool rmm::is_supported_alignment (std::size_t alignment) noexcept
 返回 `alignment` 是否为有效的内存对齐方式。 更多...
 
constexpr std::size_t rmm::align_up (std::size_t value, std::size_t alignment) noexcept
 向上对齐到指定 2 的幂的最近倍数。 更多...
 
constexpr std::size_t rmm::align_down (std::size_t value, std::size_t alignment) noexcept
 向下对齐到指定 2 的幂的最近倍数。 更多...
 
constexpr bool rmm::is_aligned (std::size_t value, std::size_t alignment) noexcept
 检查值是否按指定 2 的幂的倍数对齐。 更多...
 
bool rmm::is_pointer_aligned (void *ptr, std::size_t alignment=CUDA_ALLOCATION_ALIGNMENT) noexcept
 检查提供的指针是否按指定的 `alignment` 对齐。 更多...
 

变量

static constexpr std::size_t rmm::RMM_DEFAULT_HOST_ALIGNMENT {alignof(std::max_align_t)}
 RMM 分配主机内存时使用的默认对齐方式。
 
static constexpr std::size_t rmm::CUDA_ALLOCATION_ALIGNMENT {256}
 CUDA 内存分配时使用的默认对齐方式。