-
Notifications
You must be signed in to change notification settings - Fork 137
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
flexi-project: no NORM2 intrinsic provided #298
Comments
Can you please let us know when to expect the above intrinsic supported? |
We have this in queue to do, but it is low priority relative to other Fortran 2008 requests. Do you have a pull request that would add the intrinsic that we could review? (There are pages on the wiki that explain how to contribute to Flang...) |
As of June it appeared this feature was in review, has it been merged in the tree? Has that code been released? (I'm currently using |
See flang-compiler/flang#298 As of this, the build fails for a different reason: ``` F90-S-0439-An internal subprogram cannot be passed as argument - vec_size (.../bezier/src/fortran/curve.f90: 837) 0 inform, 0 warnings, 1 severes, 0 fatal for compute_length ```
See flang-compiler/flang#298 As of this, the build fails for a different reason: ``` F90-S-0439-An internal subprogram cannot be passed as argument - vec_size (.../bezier/src/fortran/curve.f90: 837) 0 inform, 0 warnings, 1 severes, 0 fatal for compute_length ``` Support for passing the function closure (i.e. the "internal subprogram") has been problematic before when using `gfortran` on Windows Subsystem for Linux (WSL): microsoft/WSL#2546
Fortran 2008 NORM2 should be in the current Flang. Please let us know if a recent build of Flang doesn't work in the way you expect. |
As in the topic, flang lacks NORM2 intrinsic. NORM2 is an equivalent to sqrt(dot_product(x,x)), assuming the absence of the option dim parameter for norm2.
The text was updated successfully, but these errors were encountered: