diff options
author | Junyan He <junyan.he@linux.intel.com> | 2015-11-24 18:14:41 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-11-25 11:02:45 +0800 |
commit | c2f83ca48e29a14de6d94215e7fc6dc50cd054c9 (patch) | |
tree | aef58899c6667415622f31eddf33b0c69a5cb3aa /intel-beignet.icd.in | |
parent | f801671e7c6243530448da49f3fb6104b7ae7cae (diff) |
Utests: Fix the failure for half math tests.
We do not have native half type support on X86 platforms.
The half math functions on CPU side are just used in utests,
so we do not want to import the soft imitation code or add
dependency on some math libs for half. We just use float to
to calculate the reference value. This causes the diff between
CPU results and GPU results. We use random func to generate src
value but when this src value is very close to pi or pi/2,
the truncation diff imported by float -> half will be magnified
a lot in the result of some math functions, e.g. sin, cos and tan.
We now just use a float table as src to fix this.
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'intel-beignet.icd.in')
0 files changed, 0 insertions, 0 deletions