GPU module performance tests are aligned with other OpenCV pefrofmance tests

This commit is contained in:
marina.kolpakova
2012-10-10 01:34:21 +04:00
parent 10f1004465
commit f5d6367ea1
5 changed files with 53 additions and 71 deletions

View File

@@ -53,4 +53,15 @@ namespace ts {
void printCudaInfo();
}
#define GPU_SANITY_CHECK(dmat, ...) \
do{ \
cv::Mat d##dmat(dmat); \
SANITY_CHECK(d##dmat, ## __VA_ARGS__); \
} while(0);
#define CPU_SANITY_CHECK(cmat, ...) \
do{ \
SANITY_CHECK(cmat, ## __VA_ARGS__); \
} while(0);
#endif // __OPENCV_PERF_GPU_UTILITY_HPP__