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

flexi-project: no NORM2 intrinsic provided #298

Open
pawosm-arm opened this issue Nov 10, 2017 · 4 comments
Open

flexi-project: no NORM2 intrinsic provided #298

pawosm-arm opened this issue Nov 10, 2017 · 4 comments

Comments

@pawosm-arm
Copy link
Collaborator

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.

@mvinay
Copy link

mvinay commented Dec 5, 2018

Can you please let us know when to expect the above intrinsic supported?

@gklimowicz
Copy link
Contributor

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...)

@dhermes
Copy link

dhermes commented Feb 11, 2020

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 flang==5.0.0 from conda-forge and it doesn't have the norm2 intrinsic.)

dhermes added a commit to dhermes/bezier that referenced this issue Feb 11, 2020
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
```
dhermes added a commit to dhermes/bezier that referenced this issue Feb 11, 2020
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
@gklimowicz
Copy link
Contributor

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.

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

5 participants