When compiling the attached Fortran OpenMP program with ifx I got the following error:
collatz.f90(20): internal error: Please visit 'http://www.intel.com/software/products/support' for assistance.
!$omp parallel do private(n,i,count) reduction(max:maxsequence)
collatz.f90(20): catastrophic error: Internal Compiler Error: Ref module: ffe_omp.c
compilation aborted for collatz.f90 (code 1)
The same program compiles fine with ifort and runs correctly. Previous versions of the code that did not include the OpenMP declare reduction compiled with ifx and ran correctly.
Thanks for reaching out to us.
Could you please provide us with the environment details and the Intel OneAPI version you are using?
Also, could you please let us know the command you used to compile the code?
Thanks & Regards
Good news on this one - Intel has publically announced that we will release oneAPI 2022 in early December. So it's now early December, and it's looking more like next week or "mid December" because of some last minute changes.
I have tested collatz.f90 with IFX that will be released in this oneAPI package 2022.1.
It compiles and runs
[rwgreen@orcsle127 q05297226]$ ifx -qopenmp -fopenmp-targets=spir64 collatz.f90
[rwgreen@orcsle127 q05297226]$ ./a.out
Max Collatz sequence is for 837799 and has length 525
so watch for the 2022 oneapi release. I won't comment on when, SOON, but I won't wager a guess on this one. It's complex.