Skip to content

Execution Tests: Long Vector - Dot fp32 precision#7801

Merged
alsepkow merged 26 commits into
microsoft:mainfrom
alsepkow:user/alsepkow/DotPrecision
Oct 29, 2025
Merged

Execution Tests: Long Vector - Dot fp32 precision#7801
alsepkow merged 26 commits into
microsoft:mainfrom
alsepkow:user/alsepkow/DotPrecision

Conversation

@alsepkow
Copy link
Copy Markdown
Contributor

@alsepkow alsepkow commented Oct 7, 2025

Update Dot expected values to be computed using doubles to improve precision of the final result.
Additionally, this PR adds logic to compute an absolute epsilon tolerance for the final result of each Dot operation by summing absolute epsilons calculated on each multiply and addition in the dot product. The summation portion is re-ordered to a worst-case ordering when computing the absolute epsilon error tolerance as the DX spec allows for this.

Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Copy link
Copy Markdown
Collaborator

@inbelic inbelic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can we update the commit description to include "the why"

Comment thread tools/clang/tools/libclang/CIndexDiagnostic.h Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 23, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Comment thread tools/clang/tools/libclang/CIndexDiagnostic.h
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Copy link
Copy Markdown
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I haven't deeply reviewed the mathmatics of this, so if you'd like some more review of that you may need to solicit another review.

@alsepkow
Copy link
Copy Markdown
Contributor Author

alsepkow commented Oct 24, 2025 via email

Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectorTestData.h
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
@alsepkow alsepkow force-pushed the user/alsepkow/DotPrecision branch from a6ae2ea to 3391ef6 Compare October 29, 2025 03:39
Comment thread tools/clang/unittests/HLSLExec/LongVectors.cpp Outdated
Copy link
Copy Markdown
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@alsepkow alsepkow enabled auto-merge (squash) October 29, 2025 21:16
@alsepkow alsepkow merged commit f930c1d into microsoft:main Oct 29, 2025
12 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Oct 29, 2025
@alsepkow alsepkow deleted the user/alsepkow/DotPrecision branch January 31, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants