minor chnages in GPU samples
authorAlexey Spizhevoy <no@email>
Thu, 10 Feb 2011 14:33:02 +0000 (14:33 +0000)
committerAlexey Spizhevoy <no@email>
Thu, 10 Feb 2011 14:33:02 +0000 (14:33 +0000)
samples/gpu/multi.cpp
samples/gpu/performance/performance.h
samples/gpu/stereo_multi.cpp

index aea4021..94fcb86 100644 (file)
@@ -50,7 +50,6 @@ CUcontext contexts[2];
 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
@@ -69,6 +68,7 @@ int main()
         }\r
     }\r
 \r
+    // Init CUDA Driver API\r
     safeCall(cuInit(0));\r
 \r
     // Create context for GPU #0\r
index fccb561..4d5283d 100644 (file)
@@ -71,7 +71,7 @@ public:
 \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
@@ -135,4 +135,4 @@ void gen(cv::Mat& mat, int rows, int cols, int type, cv::Scalar low,
 \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
index 58d88c6..543d964 100644 (file)
@@ -78,7 +78,6 @@ int main(int argc, char** argv)
     }\r
 \r
     int num_devices = getCudaEnabledDeviceCount();\r
-\r
     if (num_devices < 2)\r
     {\r
         cout << "Two or more GPUs are required\n";\r
@@ -111,6 +110,7 @@ int main(int argc, char** argv)
         return -1;\r
     }\r
 \r
+    // Init CUDA Driver API\r
     safeCall(cuInit(0));\r
 \r
     // Create context for the first GPU\r