From 3f268172cf242d14347f6e4d092428cb57138f89 Mon Sep 17 00:00:00 2001 From: cudawarped <12133430+cudawarped@users.noreply.github.com> Date: Sat, 23 Nov 2024 08:30:50 +0200 Subject: [PATCH] cudaimgproc: remove incorrectly added NppStreamHandler from cv::cuda::evenLevels --- modules/cudaimgproc/src/histogram.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/modules/cudaimgproc/src/histogram.cpp b/modules/cudaimgproc/src/histogram.cpp index f6cb35546ed..9652bed00b5 100644 --- a/modules/cudaimgproc/src/histogram.cpp +++ b/modules/cudaimgproc/src/histogram.cpp @@ -553,24 +553,6 @@ namespace }; } -class OldNppStreamHandlerForEvenLevels -{ -public: - explicit OldNppStreamHandlerForEvenLevels(Stream& newStream) - { - oldStream = nppGetStream(); - nppSafeSetStream(oldStream, StreamAccessor::getStream(newStream)); - } - - ~OldNppStreamHandlerForEvenLevels() - { - nppSafeSetStream(nppGetStream(), oldStream); - } - -private: - cudaStream_t oldStream; -}; - void cv::cuda::evenLevels(OutputArray _levels, int nLevels, int lowerLevel, int upperLevel, Stream& stream) { const int kind = _levels.kind(); @@ -583,9 +565,6 @@ void cv::cuda::evenLevels(OutputArray _levels, int nLevels, int lowerLevel, int else host_levels = _levels.getMat(); - // Update to use NppStreamHandler when nppiEvenLevelsHost_32s_Ctx is included in nppist.lib and libnppist.so - OldNppStreamHandlerForEvenLevels h(stream); - nppSafeCall( nppiEvenLevelsHost_32s(host_levels.ptr(), nLevels, lowerLevel, upperLevel) ); if (kind == _InputArray::CUDA_GPU_MAT)