Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • gibMay 7, 2008 11:45 PM PDT   
    /Qfp-stack-check

    The following program is fine when compiled (on Windows) with
    ifort err.f90
    but when compiled with the fp stack checking option
    ifort /Qfp-stack-check err.f90
    it gives access violation when executed.

    In my debugging efforts I've been turning on all the stack checking options, but this one seems to create a bug itself. 
    Interestingly, commenting out either of the two executable statements in subroutine zzz makes it OK.
    Any comments Steve?

    cheers
    Gib

    ! err.f90
    module errmod
    implicit none
    contains
    subroutine zzz(m)
    integer :: m(3)
    integer :: n(3)
    real :: x(3)

    x = m
    n = x

    end subroutine
    end module

    program err
    use errmod
    integer :: site(3) = (/1,2,3/)
    call zzz(site)
    end



    Les NeilsonMay 8, 2008 3:25 AM PDT
    Rate
     
    Re: /Qfp-stack-check

    The option is /Qfpstkchk

    I tried your code both from the command line and within VS without a problem
    (VS2005 and IVF 9.1.028)

    Les



    Steve Lionel (Intel)May 8, 2008 8:08 AM PDT
    Rate
     
    Re: /Qfp-stack-check

    Access violation is exactly what to expect when the FP stack check option finds a problem.

    I can reproduce the error - let me investigate.


    Steve

    Attaching or including files in a post
    Doctor Fortran blog
    @DoctorFortran on Twitter

    Steve Lionel (Intel)May 8, 2008 9:18 AM PDT
    Rate
     
    Re: /Qfp-stack-check

    By the way, the correct spelling of the option in version 10.1 is /Qfp-stack-check.  The older spelling /Qfpstkchk has been deprecated. I don't see the error with 9.1 nor with the internal build of our next major release (still a ways away).

    As best as I can tell, this is a compiler bug.  It occurs only with optimization level 2 or 3.  I have reported this to development.  If you report the issue to Intel Support, please reference T85092-CP.


    Steve

    Attaching or including files in a post
    Doctor Fortran blog
    @DoctorFortran on Twitter

    gibMay 8, 2008 3:54 PM PDT
    Rate
     
    Re: /Qfp-stack-check

    Thanks Steve.


    Steve Lionel (Intel)May 9, 2008 10:43 AM PDT
    Rate
     
    Re: /Qfp-stack-check

    The problem you encountered was reported earlier and is fixed in our next major release.  A workaround is to use /QxN or whatever other appropriate version of /Qx is that would generate SSE code instead of x87 (no FP stack, runs faster.) Reference: T80134-CP.


    Steve

    Attaching or including files in a post
    Doctor Fortran blog
    @DoctorFortran on Twitter

Forum jump:  

Intel Software Network Forums Statistics

17,025 users have contributed to 48,321 threads and 172,753 posts to date.

In the past 24 hours, we have 16 new thread(s) 57 new posts(s), and 54 new user(s).

In the past 3 days, the most popular thread for everyone has been How to manage rounding by IVF ?? The most posts were made to Most likely, the issue is that The post with the most views is Optimalization of sine function\'s taylor expansion

Please welcome our newest member redfruit83


For more complete information about compiler optimizations, see our Optimization Notice.