You mean that the module that contains not only CUDA-aware performance tests can not use CV_PERF_TEST_CUDA_MAIN?  Is that the reason? I'am asking because for example in gpu module you replase CV_PERF_TEST_MAIN_WITH_IMPLS to CV_PERF_TEST_CUDA_MAIN but you did not do it for photo and softcascade.