|
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().