![]() |
OpenVDB 13.1.0
|
Detection trait: is_async_resource<R>::value is true iff R models the stream-ordered AsyncResource concept, i.e. exposes allocate_async(size_t, size_t, cudaStream_t) and deallocate_async(void*, size_t, size_t, cudaStream_t).
More...
#include <nanovdb/cuda/DeviceResource.h>
Detection trait: is_async_resource<R>::value is true iff R models the stream-ordered AsyncResource concept, i.e. exposes allocate_async(size_t, size_t, cudaStream_t) and deallocate_async(void*, size_t, size_t, cudaStream_t).
Use it to dispatch between a stream-ordered resource and a synchronous one (which exposes allocate/deallocate without a stream argument):