KhronosGroup / KhronosGroup/OpenCL-CTS

bruteforce incorrect ulp error report for cos(double)

Open
#1,329 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
232
Forks
235
Avg merge
8d 7h
Merged PRs (30d)
18

Description

Running 'bruteforce -rf1 cos' on my implementation produces:

1: cos fp64 ................passed 2.27 @ 0x1.d10000000074p+380

Now, for that particular input argument, my implementation produces:

0.46 ulp at (0x1.d100000000740p+380): *0x1.ffff1d06dd23f8a8p-8 vs 0x1.ffff1d06dd240p-8

Wolfram claims the correct answer for this argument is
0.0078124471536865077073474543921834934716746213988958700965071438...

Which in hex rounds to: 0x1.ffff1d06dd240p-8 in double precision and identical to what my implementation produces.

So why is bruteforce claiming my implementation has a 2.27 ulp error for this input?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the report with `bruteforce -rf1 cos` and compare the displayed input, implementation result, and Wolfram reference for the reported double value. Trace how the bruteforce command computes and formats ULP error; done means the tool explains or corrects the discrepancy for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.