SyTen

◆ alloc()

CudaPtr< void > syten::Cuda::CudaAllocator::alloc ( std::size_t  sz,
std::int16_t  device 
)
inline

Returns a usable block of memory of size sz on device device if possible or on any device otherwise.

References alloc_exp2(), syten::Cuda::allowed_devices, freelist, freelistmtx, get_from_upper(), get_memory(), syten::logGN(), max_size, std::map< K, T >::size(), SYTEN_ASSERT, and SYTEN_ASSERT_MSG.

Referenced by syten::Cuda::alloc_on_device().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: