mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
added performance tests for gpu module
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "perf_precomp.hpp"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
cvtest::TS::ptr()->init("gpu");
|
||||
Regression::Init("gpu");
|
||||
TestBase::Init(argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
printf("OpenCV was built without CUDA support\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user