Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for MSVC linker bug #4713

Merged
merged 3 commits into from
Aug 10, 2020
Merged

Conversation

skottmckay
Copy link
Contributor

Description:

Change order of some unit test checks to workaround a linker issue when /LTCG:incremental is set.

Motivation and Context
If std::isinf is prior to std::isnan the linker is omitting the isnan check. That leads to TensorOpTest.CastFromString failing as there are nan's in its expected results. Reversing the order of the checks avoids the linker bug.

#4623

@skottmckay skottmckay requested a review from a team as a code owner August 5, 2020 21:00
@pranavsharma
Copy link
Contributor

Interesting. Is this bug documented somewhere?

@skottmckay
Copy link
Contributor Author

Interesting. Is this bug documented somewhere?

Not that I know of. I don't have time to put together a full standalone example that replicates it to create a bug though as it could require lots of things to line up to repro.

@skottmckay skottmckay merged commit 2e3ccc7 into master Aug 10, 2020
@skottmckay skottmckay deleted the skottmckay/WorkaroundLinkerBug branch August 10, 2020 07:54
xkszltl added a commit to xkszltl/Roaster that referenced this pull request Aug 10, 2020
xkszltl added a commit to xkszltl/Roaster that referenced this pull request Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants