Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Browsing all 2583 articles
Browse latest View live

Why the result depends on -g option and type of function

Just a small program. REAL(8) FUNCTION DUMMY(i) implicit none integer, intent(in) :: i DUMMY=dble(i) write(*,*) 'i=', dble(i),'res=',DUMMY RETURN END FUNCTION program test real(8) :: xxx xxx=DUMMY(2)...

View Article


MPICH2-1.5 Install problem - help!

I am trying to install mpich2-1.5 on my linux system (RHEL 6.5) but I can'tThe configure failed showingconfigure error: ***** Incompatible Fortran and C Object File Types! *****F77 object file type...

View Article


ifort 14.0.2 bug prevents scipy tests to pass

I've tried to use Intel MKL with numpy 1.8.0 and scipy 0.13.3 python packages.When I use -O2 option for ifort scipy tests in scipy.odr subpackage fails everytime.Using -O1 instead of -O2 results in...

View Article

Help with Fortran Wrapper that Interfaces with C Library

Dear Fortran Gurus,Let me begin with a disclaimer. I'm not a Fortran developer, but a library that I've written has been adopted by some parallel scientific codes written in Fortran, so I thought I...

View Article

Redistributable files for Mac OS X and Linux

Hi there,I have been using Intel's Fortran compiler for Windows for a while. The binary produced by the compiler with options OpenMP and MPI needs to be redistributed with several dynamic link...

View Article


Optimization causes array index out of bounds

I'm still testing the ffte benchmark. Running it on the host with -O3 -xAVX -openmp works flawlessly and the performance looks great. Now I wanted to use that code on the Intel Xeon Phi. So I replaced...

View Article

Recursive function and pass by VALUE optimizations

Hi all,I have some questions about the recursive functions performance in the compiler.The code is below, the performance table obtains with the compiler 14.  First column is normal, second column is...

View Article

-openmp results in easier vectorization?

Hi, I had an interesting finding when I played with the following OpenMP code: !$OMP PARALLEL SHARED(vals, N2, N1g, dF, F) PRIVATE(value, ind_offset, l0) !$OMP DO do k = ks, ke do ii = iis, iie value =...

View Article


ICE with -standard-semantics

Hi all,   I see and ICE when compiling the following code with -standard-semantics :$  ifort -standard-semantics -c ice.f90   010101_13220 catastrophic error: **Internal compiler error: internal...

View Article


Image may be NSFW.
Clik here to view.

how to call functions in the MKL_lapack95 library

Hi, I need your help about using the MKL_lapack95 library: I need to call a subroutine ("polyfit.f")  which calls two functions in the MKL_lapack95 library. I am using intel fortran...

View Article

Index offset leads to failure of vectorizing simple loops

Hi, I have a quick question (maybe a compiler bug?) regarding vectorization. I am playing with the following code piece:Declaration of variables: 1415 real(kind=8), allocatable :: F(:), dF(:) 1416...

View Article

Superfluous GENERIC OPERATOR specification in extended derived type generated...

Dear Steve et al. at Intel,Can you please review the code shown below and check whether it is ok to have a superfluous GENERIC OPERATOR specification in an extended derived type that is simply a copy...

View Article

Override default component initialization

Hi,I understand the following is not legal: module foo type :: bar integer :: a=53 end type type, extends(bar) :: rab integer :: a=-33333 !!! Redefine default initialization end type end moduleI think...

View Article


Functions returning arrays, derived types and the creation of temporaries.

Dear all,Consider the following situation followed up by a working test case.Let there be a derived type wrapping a multidimensional array. Let there further be a function "sum" which adds array...

View Article

Compiler not detecting missing OMP4 declare target variable

Most of the time, the compiler will complain if a global variable used in an OMP4 target region is not declared for the target (!$omp declare targt(foo))But now I had a (very big) program that compiled...

View Article


Bad performance with bitwise operations

Hello, I noticed this is noticably slower with ifort 14.0.0 than with gfortran. Is there anything to make the result run faster?  use iso_fortran_env real(real32) :: x32 integer(int64) :: t1, t2, trate...

View Article

Coarray type with an allocatable component of length zero

I get a SIGSEGV when running the following code type t   real, allocatable :: a(:)  end type t  type(t) :: data[*]  allocate(data%a(0))  print*, size(data[1]%a) end program If, instead of the last line...

View Article


Distributable binary for Mac OS X

Hi there,I am using the latest Intel fortran composer on Mac OS X (10.9.2) to compile my code, with commandifort -O1 -ip *.f90The binary generated, a.out, works fine on my Mac. However, when my...

View Article

Fixing multiplicity of common blocks in library

Can identical common blocks of mutually exclusive subroutines be merged within a library? Current results show multiplicity. I modified a Fortran 77 package to use common blocks in lieu of internally...

View Article

Puzzle: changing the order of outer loops leads to significant performance...

Hi, I have a puzzling finding that changing the order of the outer loops led to significant performance increase. I am playing with the following two versions of a small code piece:Version 1: ii, k, j,...

View Article
Browsing all 2583 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>