#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <iomanip>
#include <list>
#include <memory>
#include <mutex>
#include <shared_mutex>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "ur.hpp"
#include "usm_allocator.hpp"
Go to the source code of this file.
Classes | |
class | Slab |
class | Bucket |
class | USMAllocContext::USMAllocImpl |
Functions | |
static void * | AlignPtrDown (void *Ptr, const size_t Alignment) |
static void * | AlignPtrUp (void *Ptr, const size_t Alignment) |
static size_t | AlignUp (size_t Val, size_t Alignment) |
bool | operator== (const Slab &Lhs, const Slab &Rhs) |
std::ostream & | operator<< (std::ostream &Os, const Slab &Slab) |
Variables | |
static constexpr size_t | CutOff = (size_t)1 << 31 |
|
static |
Definition at line 50 of file usm_allocator.cpp.
References sycl::_V1::ext::oneapi::experimental::detail::Alignment.
Referenced by AlignPtrUp(), and USMAllocContext::USMAllocImpl::deallocate().
|
static |
Definition at line 57 of file usm_allocator.cpp.
References sycl::_V1::ext::oneapi::experimental::detail::Alignment, and AlignPtrDown().
Referenced by USMAllocContext::USMAllocImpl::allocate().
|
static |
Definition at line 68 of file usm_allocator.cpp.
References sycl::_V1::ext::oneapi::experimental::detail::Alignment.
Referenced by USMAllocContext::USMAllocImpl::allocate().
std::ostream& operator<< | ( | std::ostream & | Os, |
const Slab & | Slab | ||
) |
Definition at line 317 of file usm_allocator.cpp.
References Slab::getBucket(), Slab::getEnd(), Slab::getPtr(), and Bucket::getSize().
Definition at line 313 of file usm_allocator.cpp.
References Slab::getPtr().
Referenced by sycl::_V1::__SYCL_TYPE(), sycl::_V1::ext::intel::property::__SYCL_TYPE(), sycl::_V1::ext::oneapi::property::__SYCL_TYPE(), sycl::_V1::kernel::operator!=(), and sycl::_V1::id< Dims >::operator==().
|
staticconstexpr |
Definition at line 46 of file usm_allocator.cpp.