host

Function host 

Source
pub fn host(ordinal: usize) -> Result<Arc<CudaHost>>
Expand description

Get (or create) the process CUDA host on ordinal.

The ordinal is fixed by the first call — a process serves one GPU, and a later call asking for a different one is a bug worth reporting rather than silently ignoring, which is exactly what the old get_or_init did with its kernel_blobs argument.