简体   繁体   English

为什么OpenCV GPU模块运行时库在Windows和Linux中具有巨大的大小差异

[英]Why OpenCV gpu-module runtime library has huge size difference in Windows and Linux

In Windows the size of the runtime library (dll) of the gpu module (opencv_gpu247.dll for OpenCV 2.4.7) has the enormous size of 417 MB. 在Windows中,gpu模块(对于OpenCV 2.4.7,为opencv_gpu247.dll)的运行时库(dll)的大小为417 MB。 I checked the size of the same library in Linux (Debian repository) and in most architectures it is about 250 KB after installation. 我检查了Linux(Debian存储库)中相同库的大小,在大多数体系结构中,安装后大约为250 KB。 You can see it here https://packages.debian.org/stable/libs/libopencv-gpu2.3 您可以在这里看到它https://packages.debian.org/stable/libs/libopencv-gpu2.3

Why is there such an enormous size difference in the same runtime library in different operating systems? 为什么在不同的操作系统中的同一运行时库中,会有如此巨大的大小差异? Am I missing something? 我想念什么吗?

It means that OpenCV gpu module in Debian repository was built without CUDA and it is just a stub, where each function throws exception "Not available". 这意味着Debian存储库中的OpenCV gpu模块是在没有CUDA的情况下构建的,它只是一个存根,每个函数都会引发异常“不可用”。 400 Mb is a real size of gpu module, which was built with CUDA support. 400 Mb是gpu模块的实际大小,它是在CUDA支持下构建的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM