Ask Your Question
0

How to build GPU/CUDA on MSVS 2015?

asked 2016-02-11 16:13:03 -0600

I am trying to build OpenCV 3.1 using MSVS 2015 with CMake. It attempts to build, but the NVIDIA compiler fails because it says that it only supports VS2008, VS2010, and VS2013. Obviously, it can be built because the OpenCV download contains binaries for version 14 of the VS compiler which is VS2015. So how do you get it to compile and link?

edit retag flag offensive close merge delete

Comments

1

"Obviously, it can be built because the OpenCV download contains binaries for version 14 of the VS compiler which is VS2015" - afaik, those binaries are "bare metal", without any support for CUDA,OCL or TBB compiled in.

berak gravatar imageberak ( 2016-02-12 00:19:16 -0600 )edit

Afaik, thanks for your response. I use the following command like that gleaned from the forum to do a build:

cmake -G"Visual Studio 14 Win64" -DWITH_IPP=ON -DBUILD_SHARED_LIBS=OFF -DWITH_OPENCL=ON ../opencv/sources cmake --build . --config release -- /maxcpucount:4

What should be the options to build it like it is delivered?

All I want to do is build it so that my compiler will recognize the code so I can debug a problem that I have found.

uglyoldman gravatar imageuglyoldman ( 2016-02-16 06:59:36 -0600 )edit

idk. how the prebuild binaries are build, but maybe looking at the vs2015 buildbot cmdline might help

berak gravatar imageberak ( 2016-02-16 07:18:14 -0600 )edit

berak,

Thanks! That helped, but it still tries to build some of the CUDA files and fails. There is some magic that I do not understand. I will eventually get it to build. I appreciate your help.

Gene

uglyoldman gravatar imageuglyoldman ( 2016-02-17 06:37:12 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-02-12 18:10:15 -0600

Tetragramm gravatar image

Until CUDA updates to support VS2015, you cannot. No word yet on when that's coming, though it's expected in the next CUDA release.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-11 16:13:03 -0600

Seen: 909 times

Last updated: Feb 12 '16