mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
23 lines
393 B
C++
23 lines
393 B
C++
#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
|