Skip to content

Instantly share code, notes, and snippets.

@atinfinity
Created June 16, 2014 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atinfinity/276c02f2c24cde30ae5b to your computer and use it in GitHub Desktop.
Save atinfinity/276c02f2c24cde30ae5b to your computer and use it in GitHub Desktop.
OpenCVビルド情報/CUDA情報表示プログラム
#include <opencv2/core.hpp>
#include <opencv2/core/cuda.hpp>
#include <opencv2/core/utility.hpp>
#include <iostream>
int main(int argc, const char* argv[])
{
//(1) Build Information
std::cout << cv::getBuildInformation() << std::endl;
//(2) CUDA Information
cv::cuda::printShortCudaDeviceInfo(cv::cuda::getDevice());
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment