Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This should do what you want.

#include <opencv2/core/ocl.hpp>

int main() {
    cv::ocl::setUseOpenCL(false);

    // do something on CPU only...

    return 0;
}