This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!cv::ocl::haveOpenCL()){ | |
std::cout << "Device is not OpenCL capable" << std::endl; | |
} | |
else { | |
cv::ocl::setUseOpenCL(1); | |
if (cv::ocl::haveAmdFft()) | |
std::cout << "OCL: Device is AMD FFT Ready" << std::endl; | |
if (cv::ocl::haveSVM()) | |
std::cout << "OCL: Device is SVM Ready" << std::endl; | |
std::vector<cv::ocl::PlatformInfo> plt_info; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if((cuda_device_count = getCudaEnabledDeviceCount()) == 0) { | |
printf("No GPU found or the library is compiled without GPU support\n"); | |
return -1; | |
} | |
printf("Number of enabled Cuda devices: %d\n", cuda_device_count); | |
for(int device = 0; device<cuda_device_count; device++) { | |
printShortCudaDeviceInfo(device); | |
} |