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

Removing Half conditional macros, and enabling half compilation by default #890

Merged
merged 1 commit into from Jan 1, 2017

Conversation

soumith
Copy link
Member

@soumith soumith commented Jan 1, 2017

TH_GENERIC_USE_HALF, TH_NATIVE_HALF, TH_GENERIC_NO_MATH (replaced where appropriate with TH_REAL_IS_HALF), removed half from THGenerateAllTypes, added an explicit THGenerateHalfType.h

The needed declarations to enable this are causing issues with libraries downstream that use TH, which now have to enable this flag in their CMakeLists.txt (meaning lot of downstream libs needs build changes), and I've checked the use of the flag and there's really no need to put this behind an optional barrier. The code itself looks quite simple and portable.
So, enabling it as default.

Also fixing a #define leak of __align__

…laced where appropriate with TH_REAL_IS_HALF), removed half from THGenerateAllTypes, added an explicit THGenerateHalfType.h
@soumith soumith merged commit be986fb into master Jan 1, 2017
@soumith soumith deleted the halfcleanup branch January 1, 2017 09:09
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.

None yet

1 participant