added CUDA_ARCH_FEATUERS define (for correct handling of BIN(PTX) cases)

This commit is contained in:
Alexey Spizhevoy
2011-02-01 12:28:39 +00:00
parent 5a166ca963
commit e303b0dd62
2 changed files with 15 additions and 10 deletions

View File

@@ -72,9 +72,9 @@ namespace
CV_EXPORTS bool cv::gpu::TargetArchs::builtWith(cv::gpu::GpuFeature feature)
{
if (feature == NATIVE_DOUBLE)
return hasEqualOrGreater(1, 3);
return ::compareToSet(CUDA_ARCH_FEATURES, 13, std::greater_equal<int>());
if (feature == ATOMICS)
return hasEqualOrGreater(1, 1);
return ::compareToSet(CUDA_ARCH_FEATURES, 11, std::greater_equal<int>());
return true;
}