Ask Your Question
0

OpenCV with CUDA: Large opencv_gpu246.dll file

asked 2013-10-01 09:47:42 -0500

toni gravatar image

updated 2017-06-28 06:19:32 -0500

Hi,

I am trying to compile OpenCV 2.4.6 with CUDA. The compilation passed fine, however I got very large opencv_gpu246.dll output file (around 300 MB). I left options regarding GPU architectures unchanged in Cmake GUI, i.e.:

CUDA_ARCH_BIN 1.1 1.2 1.3 2.0 2.1(2.0) 3.0, CUDA_ARCH_PTX 2.0

Even if I try to compile for only one architecture, e.g.:

CUDA_ARCH_BIN 3.0 , CUDA_ARCH_PTX <empty>

I get quite a large file (around 60 MB).

When I compare these sizes to pre-built dll which ships with OpenCV (less than 1MB), the difference is huge. Has anyone observed the same behavior and what may be the problem?

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-10-01 12:33:27 -0500

Vladislav Vinogradov gravatar image

The pre-built OpenCV package was compiled without CUDA, so gpu module from them is just a fake (all functions throw exception). 60 MB is a real size of gpu module for one architecture.

edit flag offensive delete link more

Comments

Thanks, that makes a lot of sense.

toni gravatar imagetoni ( 2013-10-02 01:41:00 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-10-01 09:47:42 -0500

Seen: 257 times

Last updated: Jun 28 '17