mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -126,9 +126,11 @@ DEFINE_SIMD_TESTS(256, AVX512_SKX)
|
||||
|
||||
TEST(hal_intrin256, float16x16_FP16)
|
||||
{
|
||||
#if CV_TRY_FP16
|
||||
//CV_CPU_CALL_FP16_(test_hal_intrin_float16, ());
|
||||
CV_CPU_CALL_AVX2_(test_hal_intrin_float16, ());
|
||||
throw SkipTestException("Unsupported hardware: FP16 is not available");
|
||||
#endif
|
||||
throw SkipTestException("Unsupported: FP16 is not available");
|
||||
}
|
||||
|
||||
|
||||
@@ -142,8 +144,10 @@ namespace intrin512 {
|
||||
|
||||
TEST(hal_intrin512, float16x32_FP16)
|
||||
{
|
||||
#if CV_TRY_FP16
|
||||
CV_CPU_CALL_AVX512_SKX_(test_hal_intrin_float16, ());
|
||||
throw SkipTestException("Unsupported hardware: FP16 is not available");
|
||||
#endif
|
||||
throw SkipTestException("Unsupported: FP16 is not available");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1902,21 +1902,21 @@ void test_hal_intrin_float64()
|
||||
#endif
|
||||
}
|
||||
|
||||
#if CV_FP16
|
||||
void test_hal_intrin_float16()
|
||||
{
|
||||
DUMP_ENTRY(v_float16);
|
||||
#if CV_FP16
|
||||
TheTest<v_float32>()
|
||||
.test_loadstore_fp16_f32()
|
||||
#endif
|
||||
#if CV_SIMD_FP16
|
||||
.test_loadstore_fp16()
|
||||
.test_float_cvt_fp16()
|
||||
#endif
|
||||
;
|
||||
}
|
||||
#else
|
||||
std::cout << "SKIP: CV_FP16 is not available" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*#if defined(CV_CPU_DISPATCH_MODE_FP16) && CV_CPU_DISPATCH_MODE == FP16
|
||||
void test_hal_intrin_float16()
|
||||
|
||||
Reference in New Issue
Block a user