Skip to content

Flang: not yet implemented: intrinsic: REAL(KIND=2) in SPACING (used in e.g. HDF5) #83894

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

Open
keidavis opened this issue Mar 4, 2024 · 3 comments

Comments

@keidavis
Copy link

keidavis commented Mar 4, 2024

llvm-project/flang/include/flang/Optimizer/Support/Utils.h:131: not yet implemented: intrinsic: REAL(KIND=2) in SPACING

It seems it's not REAL(KIND=2), but the implementation for that type in the SPACING intrinsic. Looking at flang/lib/Optimizer/Builder/Runtime/Numeric.cpp, it appears that SPACING, and several other intrinsics, are implemented for larger float types.

Compiling kind_find ( https://github.com/srinathv/Coding-Examples/blob/master/codingTests/fortran90/kindfind.f90) with flang suggests that REAL(KIND=2) is at least nominally implemented.

Flang gives a sensible error message, but hoping to get this on someone's radar as much software depends on HDF5.

Thanks!

@github-actions github-actions bot added the flang Flang issues not falling into any other category label Mar 4, 2024
@clementval
Copy link
Contributor

clementval commented Sep 5, 2024

@keidavis This might solve your issue? #106575

@EugeneZelenko EugeneZelenko added flang:ir and removed flang Flang issues not falling into any other category labels Sep 5, 2024
@llvmbot
Copy link
Member

llvmbot commented Sep 5, 2024

@llvm/issue-subscribers-flang-ir

Author: Kei Davis (keidavis)

llvm-project/flang/include/flang/Optimizer/Support/Utils.h:131: not yet implemented: intrinsic: REAL(KIND=2) in SPACING

It seems it's not REAL(KIND=2), but the implementation for that type in the SPACING intrinsic. Looking at flang/lib/Optimizer/Builder/Runtime/Numeric.cpp, it appears that SPACING, and several other intrinsics, are implemented for larger float types.

Compiling kind_find ( https://github.com/srinathv/Coding-Examples/blob/master/codingTests/fortran90/kindfind.f90) with flang suggests that REAL(KIND=2) is at least nominally implemented.

Flang gives a sensible error message, but hoping to get this on someone's radar as much software depends on HDF5.

Thanks!

@llvmbot
Copy link
Member

llvmbot commented Sep 5, 2024

@llvm/issue-subscribers-flang-runtime

Author: Kei Davis (keidavis)

llvm-project/flang/include/flang/Optimizer/Support/Utils.h:131: not yet implemented: intrinsic: REAL(KIND=2) in SPACING

It seems it's not REAL(KIND=2), but the implementation for that type in the SPACING intrinsic. Looking at flang/lib/Optimizer/Builder/Runtime/Numeric.cpp, it appears that SPACING, and several other intrinsics, are implemented for larger float types.

Compiling kind_find ( https://github.com/srinathv/Coding-Examples/blob/master/codingTests/fortran90/kindfind.f90) with flang suggests that REAL(KIND=2) is at least nominally implemented.

Flang gives a sensible error message, but hoping to get this on someone's radar as much software depends on HDF5.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants