Ask Your Question
0

Avoid gpu modules while building

asked 2013-06-24 03:28:48 -0600

Abid Rahman K gravatar image

Hi,

I have installed opencv master branch in fedora x64 machine and it is working fine.

I am looking into Python bindings development. So I am not installing CUDA, Java etc. So when I make changes in code for Python, to test it is working, I rebuild it. And I feel like it is taking a lot of time. (A couple of minutes multiplied several times is a lot of time). I have already switched off the examples, performance tests etc.

I saw a lot of folders related gpu development. Since I am not using them, can I "switch it off" while building, so that it saves some time? If so how? And what else I can do to reduce the building time.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-06-24 03:51:33 -0600

Vladislav Vinogradov gravatar image

You can switch off gpu modules with CMake options:

WITH_CUDA=OFF
BUILD_opencv_gpu=OFF
BUILD_opencv_gpuarithm=OFF
BUILD_opencv_gpubgsegm=OFF
BUILD_opencv_gpucodec=OFF
BUILD_opencv_gpufeatures2d=OFF
BUILD_opencv_gpufilters=OFF
BUILD_opencv_gpuimgproc=OFF
BUILD_opencv_gpulegacy=OFF
BUILD_opencv_gpuoptflow=OFF
BUILD_opencv_gpustereo=OFF
BUILD_opencv_gpuwarping=OFF
edit flag offensive delete link more

Comments

+1 - It won't affect the other modules, right?

Abid Rahman K gravatar imageAbid Rahman K ( 2013-06-24 23:52:21 -0600 )edit

Question Tools

Stats

Asked: 2013-06-24 03:28:48 -0600

Seen: 821 times

Last updated: Jun 24 '13