singe-npp 0.1.0-alpha.8

Safe Rust wrappers for NVIDIA Performance Primitives library (NPP).
Documentation
1
2
3
4
5
6
7
8
9
10
use singe_cuda::{context::Context, stream::Stream};

use crate::{context::StreamContext, error::Result};

pub fn create_stream_context() -> Result<(Stream, StreamContext)> {
    let context = Context::create()?;
    let stream = context.create_stream()?;
    let stream_context = StreamContext::create(&stream)?;
    Ok((stream, stream_context))
}