How to use OpenCV CUDA Streams: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 28: Line 28:
Compile the example with:
Compile the example with:


<source lang="bash">
<syntaxhighlight lang="bash">
g++ testStreams.cpp -o testStreams $(pkg-config --libs --cflags opencv4)
g++ testStreams.cpp -o testStreams $(pkg-config --libs --cflags opencv4)
</source>
</syntaxhighlight>


'''testStreams.cpp'''  
'''testStreams.cpp'''  
<source lang="C++">
<syntaxhighlight lang="C++">


#include <opencv2/opencv.hpp>
#include <opencv2/opencv.hpp>
Line 148: Line 148:
     return 0;
     return 0;
}
}
</source>
</syntaxhighlight>


== Profiling with NVIDIA Nsight ==
== Profiling with NVIDIA Nsight ==