Change default to JIT without fma#2076
Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
Open
Change default to JIT without fma#2076lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
Conversation
The ShadingSystem option "llvm_jit_fma" seems to advertise that it switches between no fused multiply-add (the default, 0), versus allowing fma to be generated in the JIT. The underlying LLVM option is actually a 3-way switch about how to utilized fused ops: Strict (no fused ops), Standard (allow fma but not other fused ops), or Fast (allow other fused ops when it will speed things up). Aside: "standard" is really confusing, as one might think it means original standard IEEE 754 definitions that lacked fma. These are not the same! We were using llvm_jit_fma to switch between Standard and Fast, but upon closer examination, we now believe that it should control a switch between Strict and Standard, and Strict should be the default. This seems to directly change the pesky render-microfacet test, which has always seemed to have an unusual sensitivity to the specific processor. Hopefully, users will find that across the board, it leads to their renderers having fewer minor pixel differences from one platform to another. Signed-off-by: Larry Gritz <lg@larrygritz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ShadingSystem option "llvm_jit_fma" seems to advertise that it switches between no fused multiply-add (the default, 0), versus allowing fma to be generated in the JIT.
The underlying LLVM option is actually a 3-way switch about how to utilize fused ops: Strict (no fused ops), Standard (allow fma but not other fused ops), or Fast (allow other fused ops when it will speed things up). Aside: "standard" is really confusing, as one might think it means original standard IEEE 754 definitions that lacked fma.
These are not the same! We were using llvm_jit_fma to switch between Standard and Fast, but upon closer examination, we now believe that it should control a switch between Strict and Standard, and Strict should be the default.
This seems to directly change the pesky render-microfacet test, which has always seemed to have an unusual sensitivity to the specific processor. Hopefully, users will find that across the board, it leads to their renderers having fewer minor pixel differences from one platform to another.