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

[type] Support exponents in CustomFloatType #2122

Merged
merged 29 commits into from
Dec 27, 2020

Conversation

yuanming-hu
Copy link
Member

@yuanming-hu yuanming-hu commented Dec 27, 2020

Related issue = #1905

  • Add TypeFactory Python class
  • CustomFloatType now supports exponents (GlobalLoad/Store)
  • shared_exponent API (implementation in the next PR)
  • LLVM codegen refactorings
  • place(CustomFloatType) SNodes now has a pointer to its exponent SNode
  • Children of bit_struct SNode now has bit_offset

(This is, unfortunately, a lot of implementation details and "magic" numbers, especially the conversion between CustomFloatType and IEEE 754 f32).

[Click here for the format server]


@yuanming-hu
Copy link
Member Author

@TH3CHARLie @Hanke98 I'm directly merging this PR to move forward. If you are interested in this, feel free to take a look :-) otherwise, please focus on the quantized GoL/fluid demos which are more important.

@yuanming-hu yuanming-hu merged commit f1768ca into taichi-dev:master Dec 27, 2020
@yuanming-hu yuanming-hu deleted the cft-exp branch December 27, 2020 15:27
@k-ye k-ye mentioned this pull request Jan 5, 2021
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.

1 participant