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

_Float16 is not present on g++ #57

Closed
sobczyk opened this issue Sep 1, 2020 · 4 comments
Closed

_Float16 is not present on g++ #57

sobczyk opened this issue Sep 1, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@sobczyk
Copy link

sobczyk commented Sep 1, 2020

the _Float16 type is not present on arm g++

Environment

g++ 7.4 7.5 and others

C++ standard mode (e.g. 17, 20, 'latest'):
not applicable

Target arch (e.g. x64):
arm64, arm

Library configuration overrides:
not applicable

Relevant compilation flags:
see steps to reproduce link

Describe the bug

_Float16 is not available desptite gcc documentation saying one should use it
It's only available for C not C++

Steps to reproduce (or a small repro code sample)

https://godbolt.org/z/5e6rdP
The last one shows it's visible for C

Additional information

@sobczyk sobczyk added the bug Something isn't working label Sep 1, 2020
@marzer
Copy link
Owner

marzer commented Sep 1, 2020

Is this causing a compiler error for you? I've been able to compile with float16 support on arm64.

@marzer
Copy link
Owner

marzer commented Sep 1, 2020

Is this causing a compiler error for you?

Never mind, I've just tried compiling again on my arm64 tester and see the issue. Thanks, I'll look into this.

@bobfang1992
Copy link

Should this be included in CI? I mean multiple compiler and compiler versions etc.

@marzer
Copy link
Owner

marzer commented Sep 1, 2020

Yeah, probably. The main reason it's not currently testing lots of compilers was to keep the Docker image small-ish.

I test lots of different compilers and configs on my own machine before committing, as well as testing on ARM64 using an rpi4:

  • clang 6 - 11
  • GCC 7 - 10
  • vs 2019
  • with/without exceptions
  • C++17 and C++20

I'd like to migrate the CI to use GitHub actions and at that point I'd automate more platforms, but don't really have the time at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants