Skip to main content

client_state_cuda_ops

Function client_state_cuda_ops 

Source
pub unsafe fn client_state_cuda_ops(
    state: EfClientState,
    map_fn: EfCudaMapFn,
    unmap_fn: EfCudaUnmapFn,
    unregister_fn: EfCudaUnregisterFn,
) -> Result<Arc<dyn CudaGlOps>>
Expand description

Build CudaGlOps from a client’s frozen EfClientState and the three CUDA op functions. Retains the channel; Drop of the returned Arc releases it.

§Safety

state.ctx must be the context the supplied function pointers understand.