Ask Your Question

Revision history [back]

how to use multi-thread in ocl face detect sample in ubuntu 14.04

Hello everyone, We are trying to test facedetect.cpp sample in opencv-2.4.9/samples/ocl in ubuntu 14.04 with nvidia gt630. But we found that we can not use multi-thread option. And we noted that in source file, there is '#if defined(_MSC_VER) && (_MSC_VER >= 1700) # include <thread>

endif'

Is this means only in VS of windows OS can include thread file and use multi-thread option? We are confused what we should do to compile(g++) with thread and run the facedetect.cpp in ubuntu OS.Could anyone can help us? Thank you!

Frank

how to use multi-thread in ocl face detect sample in ubuntu 14.04

Hello everyone, We are trying to test facedetect.cpp sample in opencv-2.4.9/samples/ocl in ubuntu 14.04 with nvidia gt630. But we found that we can not use multi-thread option. And we noted that in source file, there is '#if defined(_MSC_VER) && (_MSC_VER >= 1700) # include <thread>

endif'

<thread> #endif' Is this means only in VS of windows OS can include thread file and use multi-thread option? We are confused what we should do to compile(g++) with thread and run the facedetect.cpp in ubuntu OS.Could anyone can help us? Thank you!

Frank