int main()\r
{\r
int num_devices = getCudaEnabledDeviceCount();\r
-\r
if (num_devices < 2)\r
{\r
cout << "Two or more GPUs are required\n";\r
}\r
}\r
\r
+ // Init CUDA Driver API\r
safeCall(cuInit(0));\r
\r
// Create context for GPU #0\r
\r
private:\r
TestSystem(): can_flush_(false), cpu_elapsed_(0), gpu_elapsed_(0), \r
- speedup_total_(0.0), num_subtests_called_(0) {};\r
+ speedup_total_(0.0), num_subtests_called_(0) {}\r
\r
void flushSubtestData();\r
\r
\r
std::string abspath(const std::string& relpath);\r
\r
-#endif // OPENCV_GPU_SAMPLE_PERFORMANCE_H_
\ No newline at end of file
+#endif // OPENCV_GPU_SAMPLE_PERFORMANCE_H_\r
}\r
\r
int num_devices = getCudaEnabledDeviceCount();\r
-\r
if (num_devices < 2)\r
{\r
cout << "Two or more GPUs are required\n";\r
return -1;\r
}\r
\r
+ // Init CUDA Driver API\r
safeCall(cuInit(0));\r
\r
// Create context for the first GPU\r