void syten::Cuda::setup | ( | Vec< std::int16_t > const & | devices | ) |
Sets up CUDA to allow the specified devices and generates the associated cuBLAS handles for the calling thread.
References allocator, std::vector< T >::begin(), cuda_handle_error, std::vector< T >::end(), syten::Cuda::CudaAllocator::free(), syten::Cuda::CudaAllocator::initialise(), initialise_handles(), std::iota(), syten::logGD(), mem_status(), select_device(), and set_allowed_devices().