4#ifndef NANOVDB_CUDA_PINNEDRESOURCE_H_HAS_BEEN_INCLUDED
5#define NANOVDB_CUDA_PINNEDRESOURCE_H_HAS_BEEN_INCLUDED
7#include <cuda_runtime_api.h>
41 void*
allocate(
size_t bytes,
size_t alignment) {
52 void deallocate(
void* p,
size_t bytes,
size_t alignment) {
Default host-pinned memory resource. Allocations are page-locked host memory (cudaMallocHost) that is...
Definition PinnedResource.h:27
static constexpr bool HOST_ACCESSIBLE
Pinned allocations are mapped into the host address space, so containers over this resource remain ho...
Definition PinnedResource.h:36
void deallocate(void *p, size_t bytes, size_t alignment)
Synchronous deallocation.
Definition PinnedResource.h:52
void * allocate(size_t bytes, size_t alignment)
Synchronous allocation of page-locked host memory.
Definition PinnedResource.h:41
friend bool operator==(const PinnedResource &, const PinnedResource &)
Stateless: memory allocated through one instance may be deallocated through any other,...
Definition PinnedResource.h:61
friend bool operator!=(const PinnedResource &, const PinnedResource &)
Definition PinnedResource.h:62
static constexpr size_t DEFAULT_ALIGNMENT
Definition PinnedResource.h:31
Defines a simple memory pool used to call cub functions that use dynamic temporary storage.
Definition GridHandle.h:34
Cuda specific utility functions.
#define cudaCheck(ans)
Definition Util.h:49