Intel® Fortran Compiler

Linking f95 to ifort instead of Gfortran

I have Ubuntu 14.04 and have installed intel fortran compiler. I am trying to compile a code through makefile that uses ifort.  However, I get these errors while compiling 


f95: error: precise: No such file or directory
f95: error: unrecognized command line option ‘-h’
f95: error: unrecognized command line option ‘-fp-model’
f95: error: unrecognized command line option ‘-ip’



MsVS Build Error "(Platform Toolset = 'Intel C++ Compiler 16.0')...not...found."

Running with Microsoft Win10 and Visual Studio 15 Community, and Intel® Parallel Studio XE 2016 Composer Edition.  The System Studio Matrix Multiply solution on a clean build gave no errors but build encounters MSB8020 in each sub-project file with the description “The build tools for Intel C++ Compiler 16.0 (Platform Toolset = 'Intel C++ Compiler 16.0') cannot be found. . . ."   

Not able to debug in to Fortran Static library code

My environment: VS2013 and Intel Visual Fortran Composer XE 2013 SP1
I've a C++ project, which calls the functions in statically linked Fortran library. When I run the main program, it runs correctly. It calls the functions in Fortran and returns the value. But I could not debug into the Fortran static library code. I can step into the C++ code,but not inside the Fortran function.

Replacing the first record in a sequential formatted file

This is perhaps an "add on" to dboggs query "Deleting records from a sequential formatted file".  I have a sequential formatted file with an initial "record" which has the number of records in the file.  Obviously I do not tend to know this value a priori.  Therefore, I run my code to the end and make a CALL at the end which is the following:

Very Slow Compilation under VS 2013 plus PSXE 2016

Hi Steve,

I have to machines one with VS 2008 and Intel Parallel Studio XE 2013 and the other one with VS 2013 and Intel Parallel Studio XE 2016. When I compile identical Fortran codes in these two machines it takes about 4-5 minutes to be compiled in the first machine (i.e., with the old versions for both VS and Intel Fortran Compiler) whereas it takes about 5-6 hours in the second machine! I have checked the Intel Fortran compiler options in the two machines and it appears to me they are identical. I would appreciate it if you could help me to resolve this issue.

Auto-parallelized F77 code runs but no speedup

I have a working program (Fortran 77) that I’m trying to auto-parallelize on a cluster. The changes made in the compiling makefiles (abbreviated) are shown in the curly brackets below.
Build library:
FOR=ifort -c -O3 {-parallel}
LINK=ifort {-parallel}
    $(FOR) $<
    rm libprog.a
    $(FOR) $(HJS)/*.f
    ar -rv $(PROG_DIR)/libprog.a  *.o
    rm *.o
Compile executable:
FOR=ifort -c -O3 {-parallel}
LINK=ifort {-parallel}

Deleting records from a sequential formatted file

My program creates a file of type sequential formatted that look similar to this:

This is a free-form section containing text of
various user comments

The file is then closed. In a subsequent run of the same program, it needs to open this file and edit it  to delete the keyword list with a new list, which can be either longer or shorter than the existing list. How can I do this?

Using modules increases build time


It is known the use of modules is a more modern approach than using global subroutines. But if the project is large and includes many files, the compilation process  after some changes in modules affects a large number of files. When using the global routines any changes lead to only one file compilation and linking process and it takes a little time. 

Does this mean that the modules are less efficient?

Linking static lib in VS2012 and IVF XE2013

How to link static library .lib to executable program?

Documentation tells about VS2008 and 2010 only.

When I place my .lib file into folder with source files and include it into project compiler gives an error:

error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [FMZM] 

FMZM - name of module in library I want to use.

Subscribe to Intel® Fortran Compiler