void syten::Cuda::select_device | ( | std::int16_t | device | ) |
Selects the specified device for the current thread.
References cuda_handle_error, and SYTEN_ASSERT.
Referenced by syten::CudaDenseTensorImpl::cuda_transpose_kernel(), get_handle(), syten::Cuda::CudaAllocator::get_memory(), initialise_handles(), syten::CudaDenseTensorImpl::isZero(), syten::Cuda::CudaStream::make_new(), set_allowed_devices(), setup(), and syten::Cuda::CudaStream::synchronise().