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
static constexpr size_t DEFAULT_ALIGNMENT
Definition PinnedResource.h:31
Definition GridHandle.h:37
Defines a simple memory pool used to call cub functions that use dynamic temporary storage.
Definition GridHandle.h:31
Cuda specific utility functions.
#define cudaCheck(ans)
Definition Util.h:49