OpenCV  5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
Functions

Detailed Description

Basic functions for CUDA streams management.

Functions

cudaStream_t nppStGetActiveCUDAstream ()
 
cudaStream_t nppStSetActiveCUDAstream (cudaStream_t cudaStream)
 

Function Documentation

◆ nppStGetActiveCUDAstream()

cudaStream_t nppStGetActiveCUDAstream ( )

#include <opencv2/cudalegacy/NPP_staging.hpp>

Gets an active CUDA stream used by NPPST NOT THREAD SAFE

Returns
Current CUDA stream

◆ nppStSetActiveCUDAstream()

cudaStream_t nppStSetActiveCUDAstream ( cudaStream_t  cudaStream)

#include <opencv2/cudalegacy/NPP_staging.hpp>

Sets an active CUDA stream used by NPPST NOT THREAD SAFE

Parameters
cudaStream[IN] cudaStream CUDA stream to become current
Returns
CUDA stream used before