Skip to content

Compare "Inf" and "Infinity" as equal#55

Merged
alex2shiyu merged 1 commit intoperturbo-code:mainfrom
pinkston3:inf-values
Jan 4, 2024
Merged

Compare "Inf" and "Infinity" as equal#55
alex2shiyu merged 1 commit intoperturbo-code:mainfrom
pinkston3:inf-values

Conversation

@pinkston3
Copy link
Copy Markdown
Contributor

The nvfortran compiler outputs "Inf" for infinity values, and other compilers output "Infinity". This fix chops off the "inity" part of "Infinity" to ensure they all "look the same" to the test code.

The nvfortran compiler outputs "Inf" for infinity values, and other
compilers output "Infinity".  This fix chops off the "inity" part of
"Infinity" to ensure they all "look the same" to the test code.
@pinkston3
Copy link
Copy Markdown
Contributor Author

My one concern about this edit is that we may want to retain the original string values for error reporting, rather than the normalized ones. Thoughts?

@imaliyov
Copy link
Copy Markdown
Member

I think this fix would work fine! If we have 'inf' or 'infinity', this is enough information to understand what's going on.
... if I understand your concern correctly

@alex2shiyu alex2shiyu merged commit 8bdf9db into perturbo-code:main Jan 4, 2024
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