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

compiler error under Agressive optimizations

andrei78
Beginner
698 Views
Hi!
We have upgraded one of our threelicenses from CVF 6.6 to Intel Fortran 8.0. I'm performing some basic tests to compare them. Compiling the following simple code, the environment stops with the message: "error: problem during the multi-file optimization compilation (code -1073741819)"
The problem persists at optimization level Maximize speed across entire program, and disappeared at lower optimization levels. The CVF6.6C compiles the code flawlessly at all optimization levels (of course the use ifport statement becomes use dfport statement).
Of course it's not production code, it's just for the evaluation of the comiler's capabilities.
 
    program MatrixMultiplication
    use ifport
    implicit none

    ! Variables
    real (8), allocatable :: A(:,:),B(:,:),C(:,:)
    real (4)              :: ti
    integer               :: i,j,k
    integer, parameter    :: N=1000

    ! Body of MatrixMultiplication
    ti=timef()
    write(*,*) 'Creating random matrices'
    
    allocate (A(N,N))
    allocate (B(N,N))
    allocate (C(N,N))
    
    do i=1,N
    do j=1,N
    A(i,j)=drand(0)
    B(i,j)=drand(0)
    end do
    end do
    
    C=0.0_8
    write(*,*) 'Matrix multiplication'
    do i=1,n
    do j=1,n
    do k=1,n
    C(i,j)=C(i,j)+A(i,k)*B(k,j)
    end do
    end do
    end do
    ti=timef()
    write(*,*) ti
    
    deallocate (A,B,C)

    end program MatrixMultiplication

Thanks in advance
Andras Szabo
0 Kudos
1 Reply
Steven_L_Intel1
Employee
698 Views
Please report suspected compiler problems to Intel Premier Support. This user forum is not intended as a replacement for product support. Before you do so, though, please make sure you are using the latest compiler - 8.0.047 I think is current. I tried your program with -Qipo -O3 and it built ok for me.
0 Kudos
Reply