Skip to content

Commit

Permalink
Fp16 math bruteforce staging (#1863)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
shajder and gwawiork authored Dec 18, 2023
1 parent 4216c53 commit 87dc09c
Show file tree
Hide file tree
Showing 31 changed files with 6,581 additions and 145 deletions.
13 changes: 13 additions & 0 deletions test_conformance/math_brute_force/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,53 @@ set(MODULE_NAME BRUTEFORCE)
set(${MODULE_NAME}_SOURCES
binary_double.cpp
binary_float.cpp
binary_half.cpp
binary_i_double.cpp
binary_i_float.cpp
binary_i_half.cpp
binary_operator_double.cpp
binary_operator_float.cpp
binary_operator_half.cpp
binary_two_results_i_double.cpp
binary_two_results_i_float.cpp
binary_two_results_i_half.cpp
common.cpp
common.h
function_list.cpp
function_list.h
i_unary_double.cpp
i_unary_float.cpp
i_unary_half.cpp
macro_binary_double.cpp
macro_binary_float.cpp
macro_binary_half.cpp
macro_unary_double.cpp
macro_unary_float.cpp
macro_unary_half.cpp
mad_double.cpp
mad_float.cpp
mad_half.cpp
main.cpp
reference_math.cpp
reference_math.h
sleep.cpp
sleep.h
ternary_double.cpp
ternary_float.cpp
ternary_half.cpp
test_functions.h
unary_double.cpp
unary_float.cpp
unary_half.cpp
unary_two_results_double.cpp
unary_two_results_float.cpp
unary_two_results_half.cpp
unary_two_results_i_double.cpp
unary_two_results_i_float.cpp
unary_two_results_i_half.cpp
unary_u_double.cpp
unary_u_float.cpp
unary_u_half.cpp
utility.cpp
utility.h
)
Expand Down
Loading

0 comments on commit 87dc09c

Please sign in to comment.