added CUDA version info to gpu tests

pull/13383/head
Vladislav Vinogradov 14 years ago
parent 52bdfbc7fc
commit 724a3c1473
  1. 4
      modules/gpu/test/test_main.cpp
  2. 1
      modules/gpu/test/test_precomp.hpp

@ -46,7 +46,7 @@
void print_info()
{
#if defined _WIN32
# if define _WIN64
# if defined _WIN64
puts("OS: Windows 64\n");
# else
puts("OS: Windows 32\n");
@ -65,6 +65,8 @@ void print_info()
# endif
#endif
printf("CUDA version: %d\n\n", CUDART_VERSION);
int deviceCount = cv::gpu::getCudaEnabledDeviceCount();

@ -50,6 +50,7 @@
#include <string>
#include <algorithm>
#include <iterator>
#include <cuda_runtime_api.h>
#include "cvconfig.h"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"

Loading…
Cancel
Save