Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29274 Discussions

Problem with 2017 Version of 64-bit Fortran Compiler

schulzey
New Contributor I
2,013 Views

After upgrading to the 2017 ifort compiler for Windows I am having a problem with passing an array dimensioned as Array(n) to a subroutine that has it dimensioned as Array(n,1). It seems like the array indices are getting scrambled in the subroutine. The problem doesn't occur in the 2017 32-bit compiler or in any previous versions of the 64-bit compiler.

Has something changed that makes this practice now illegal or is it potentially a bug?

See attached example.

Peter
 

0 Kudos
23 Replies
schulzey
New Contributor I
301 Views

Rather than specifically linking mkl_rt.lib, can I just change the Include and Library folders for MKL in Visual Studio? For example, in VS I just go to Tools => Options => Intel Compilers and Tools => Visual Fortran => Compilers and then in the [...] buttons next to "Includes" and "Libraries" I just change the mkl path to point to the version of MKL I want to use. Is that correct?

​Peter

0 Kudos
mecej4
Honored Contributor III
301 Views

Yes. Similarly, when you run the program, the path should contain the directory with the desired version of the MKL DLLs earlier than other versions of MKL, if any.

0 Kudos
Steven_L_Intel1
Employee
301 Views

The loop index problem is expected to be fixed in Update 2 to Parallel Studio XE 2017.

0 Kudos
Reply