mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
renamed gpu::DeviceInfo::has into gpu::DeviceInfo::supports
This commit is contained in:
@@ -673,7 +673,7 @@ struct CV_GpuMinMaxTest: public CvTest
|
||||
try
|
||||
{
|
||||
bool double_ok = gpu::TargetArchs::builtWith(gpu::NATIVE_DOUBLE) &&
|
||||
gpu::DeviceInfo().has(gpu::NATIVE_DOUBLE);
|
||||
gpu::DeviceInfo().supports(gpu::NATIVE_DOUBLE);
|
||||
int depth_end = double_ok ? CV_64F : CV_32F;
|
||||
|
||||
for (int depth = CV_8U; depth <= depth_end; ++depth)
|
||||
@@ -798,7 +798,7 @@ struct CV_GpuMinMaxLocTest: public CvTest
|
||||
try
|
||||
{
|
||||
bool double_ok = gpu::TargetArchs::builtWith(gpu::NATIVE_DOUBLE) &&
|
||||
gpu::DeviceInfo().has(gpu::NATIVE_DOUBLE);
|
||||
gpu::DeviceInfo().supports(gpu::NATIVE_DOUBLE);
|
||||
int depth_end = double_ok ? CV_64F : CV_32F;
|
||||
|
||||
for (int depth = CV_8U; depth <= depth_end; ++depth)
|
||||
@@ -875,7 +875,7 @@ struct CV_GpuCountNonZeroTest: CvTest
|
||||
try
|
||||
{
|
||||
int depth_end;
|
||||
if (cv::gpu::DeviceInfo().has(cv::gpu::NATIVE_DOUBLE))
|
||||
if (cv::gpu::DeviceInfo().supports(cv::gpu::NATIVE_DOUBLE))
|
||||
depth_end = CV_64F;
|
||||
else
|
||||
depth_end = CV_32F;
|
||||
|
||||
Reference in New Issue
Block a user