-
Notifications
You must be signed in to change notification settings - Fork 99
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
Use -standard-semanics by default with Intel compilers #868
Comments
Relevant for #901. We need to turn standard-semantics on with ifort, because lhs reallocation is not enabled by default otherwise. That means that most of the code ought to be rewritten (allocatable character variaboles). |
While written in the context of logical values and C interoperability, the Intel documentation states that:
|
To solve that issue you would need just the |
This is resolved now |
After my performance testing of several test codes, For example, if you run code fortran-lang/benchmarks: poisson2d/optimized.f90 with > ifort /O3 /fp:precise /align:all /error-limit:1 /reentrancy:threaded /nogen-interfaces /assume:byterecl main.f90; ./main
7.23437500000000 84198
> ifort /O3 /fp:precise /align:all /error-limit:1 /reentrancy:threaded /nogen-interfaces /assume:byterecl /standard-semantics main.f90; ./main
13.1562500000000 84198
> ifx /O3 /fp:precise /align:all /error-limit:1 /reentrancy:threaded /nogen-interfaces /assume:byterecl main.f90; ./main
10.3437500000000 84198
> ifx /O3 /fp:precise /align:all /error-limit:1 /reentrancy:threaded /nogen-interfaces /assume:byterecl /standard-semantics main.f90; ./main
16.7968750000000 84198 The performance of |
Using this option would ensure that a more standard compliant mode is used with Intel compilers. Alternatively, this could be specified as an option in the Fortran table:
See also https://fortran-lang.discourse.group/t/5451/22
The text was updated successfully, but these errors were encountered: