added CUDA version info to gpu tests
This commit is contained in:
parent
52bdfbc7fc
commit
724a3c1473
@ -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…
x
Reference in New Issue
Block a user