1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

umat cuda integration

This commit is contained in:
Abhishek Gola
2026-06-30 19:05:55 +05:30
parent 36d8bc4a44
commit f3a8f654c3
3 changed files with 429 additions and 0 deletions
@@ -1335,6 +1335,16 @@ private:
CV_EXPORTS_W void printCudaDeviceInfo(int device);
CV_EXPORTS_W void printShortCudaDeviceInfo(int device);
/** @brief Returns the MatAllocator that backs cv::UMat with CUDA device memory.
Bind it to a UMat before allocation to place the buffer on the current CUDA device:
@code
UMat u; u.allocator = cv::cuda::getCudaAllocator(); u.create(rows, cols, CV_32F);
@endcode
Returns NULL when OpenCV is built without CUDA. Mirrors cv::ocl::getOpenCLAllocator().
*/
CV_EXPORTS MatAllocator* getCudaAllocator();
//! @} cudacore_init
}} // namespace cv { namespace cuda {