mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 23:29:02 +00:00
Fp16 math bruteforce staging (#1863)
* Enable fp16 in math bruteforce * Added modernization of remaining half tests for consistency (issue #142, bruteforce) * Added kernel types related corrections * Added more fixes and general cleanup * Corrected ULP values for half tests (issue #142, bruteforce) * Corrected presubmit check for clang format * Added support for ternary, unary_two_result and unary_two_result_i tests for cl_half (issue #142, bruteforce) * Added missing condition due to vendor's review * code format correction * Added check for lack of support for denormals in binary_half scenario * Corrected procedure to compute nextafter cl_half for flush-to-zero mode * Added correction for external check of reference value for nextafter test * Added correction due to code review request * Changed quantity of tests performed for half in unary and macro_unary procedures from basic * Added corrections related to code review: -added binary_operator_half.cpp and binary_two_results_i_half.cpp -address sanitizer errors fixed -extending list of special half values -removed unnecessary relaxed math references in half tests -corrected conditions to verify ulp narrowing of computation results -several refactoring and cosmetics corrections * Print format correction due to failed CI check * Corrected bug found in code review (fp16 bruteforce) * Corrections related to code review (cl_khr_fp16 support according to #142) -gHostFill missing support added -special half values array extended -cosmetics and unifying * clang format applied * consistency correction * more consistency corrections for cl_fp16_khr supported tests * Corrections related to code review (bureforce #142) * Correction for i_unary_half test capacity * Corrections related to capacity of cl_khr_fp16 tests in bruteforce (#142) --------- Co-authored-by: Wawiorko, Grzegorz <grzegorz.wawiorko@intel.com>
This commit is contained in:
@@ -24,6 +24,9 @@ int TestFunc_Float_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
// double foo(double)
|
||||
int TestFunc_Double_Double(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// half foo(half)
|
||||
int TestFunc_Half_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// int foo(float)
|
||||
int TestFunc_Int_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
@@ -36,6 +39,9 @@ int TestFunc_Float_UInt(const Func *f, MTdata, bool relaxedMode);
|
||||
// double foo(ulong)
|
||||
int TestFunc_Double_ULong(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// half (Ushort)
|
||||
int TestFunc_Half_UShort(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// Returns {0, 1} for scalar and {0, -1} for vector.
|
||||
// int foo(float)
|
||||
int TestMacro_Int_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
@@ -44,21 +50,34 @@ int TestMacro_Int_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
// int foo(double)
|
||||
int TestMacro_Int_Double(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// int foo(half,half)
|
||||
int TestMacro_Int_Half_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// int foo(half)
|
||||
int TestMacro_Int_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// int foo(half)
|
||||
int TestFunc_Int_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// float foo(float, float)
|
||||
int TestFunc_Float_Float_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// double foo(double, double)
|
||||
int TestFunc_Double_Double_Double(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// Half foo(half, half)
|
||||
int TestFunc_Half_Half_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
// Special handling for nextafter.
|
||||
// float foo(float, float)
|
||||
int TestFunc_Float_Float_Float_nextafter(const Func *f, MTdata,
|
||||
bool relaxedMode);
|
||||
// Half foo(Half, Half)
|
||||
int TestFunc_Half_Half_Half_nextafter(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// Half foo(Half, Half)
|
||||
int TestFunc_Half_Half_Half_common(const Func *f, MTdata, int isNextafter,
|
||||
bool relaxedMode);
|
||||
|
||||
// Half foo(Half, int)
|
||||
int TestFunc_Half_Half_Int(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// Special handling for nextafter.
|
||||
// double foo(double, double)
|
||||
int TestFunc_Double_Double_Double_nextafter(const Func *f, MTdata,
|
||||
bool relaxedMode);
|
||||
|
||||
// float op float
|
||||
int TestFunc_Float_Float_Float_Operator(const Func *f, MTdata,
|
||||
@@ -68,6 +87,9 @@ int TestFunc_Float_Float_Float_Operator(const Func *f, MTdata,
|
||||
int TestFunc_Double_Double_Double_Operator(const Func *f, MTdata,
|
||||
bool relaxedMode);
|
||||
|
||||
// half op half
|
||||
int TestFunc_Half_Half_Half_Operator(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// float foo(float, int)
|
||||
int TestFunc_Float_Float_Int(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
@@ -89,24 +111,36 @@ int TestFunc_Float_Float_Float_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
int TestFunc_Double_Double_Double_Double(const Func *f, MTdata,
|
||||
bool relaxedMode);
|
||||
|
||||
// half foo(half, half, half)
|
||||
int TestFunc_Half_Half_Half_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// float foo(float, float*)
|
||||
int TestFunc_Float2_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// double foo(double, double*)
|
||||
int TestFunc_Double2_Double(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// half foo(half, half*)
|
||||
int TestFunc_Half2_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// float foo(float, int*)
|
||||
int TestFunc_FloatI_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// double foo(double, int*)
|
||||
int TestFunc_DoubleI_Double(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// half foo(half, int*)
|
||||
int TestFunc_HalfI_Half(const Func *f, MTdata d, bool relaxedMode);
|
||||
|
||||
// float foo(float, float, int*)
|
||||
int TestFunc_FloatI_Float_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// double foo(double, double, int*)
|
||||
int TestFunc_DoubleI_Double_Double(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// half foo(half, half, int*)
|
||||
int TestFunc_HalfI_Half_Half(const Func *f, MTdata d, bool relaxedMode);
|
||||
|
||||
// Special handling for mad.
|
||||
// float mad(float, float, float)
|
||||
int TestFunc_mad_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
@@ -115,4 +149,7 @@ int TestFunc_mad_Float(const Func *f, MTdata, bool relaxedMode);
|
||||
// double mad(double, double, double)
|
||||
int TestFunc_mad_Double(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
// half mad(half, half, half)
|
||||
int TestFunc_mad_Half(const Func *f, MTdata, bool relaxedMode);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user