Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Groups
    • Search
    • 官网
    1. Home
    2. Sephirah
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Sephirah

    @Sephirah

    0
    Reputation
    1
    Posts
    279
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Sephirah Follow

    Posts made by Sephirah

    • RE: 主核上无法使用指数为 0 的浮点数(subnormals),报错 sig 8(SIGFPE)

      感谢楼主提示,这里对新的编译器以及fortran上类似问题做出一些补充

      补充:最近申威提供了新版编译器如530和710,这些C或Fortran的编译器无法使用-OPT:IEEE_arith=1选项,可以使用-mieee -mfloat-ieee -mieee-conformant这几个选项代替。详细说明可以使用swgfortran -v --help查看

      摘录部分输出内容如下

        -mfloat-ieee                Do not use VAX fp
        -mfloat-vax                 Use VAX fp
        -mfp-regs                   Use fp registers
        -mfp-rounding-mode=         Control the generated fp rounding mode
        -mfp-trap-mode=             Control the IEEE trap mode
        -mgas                       Assume GAS
        -mieee                      Emit IEEE-conformant code, without inexact
                                    exceptions
        -mieee-conformant           Request IEEE-conformant math library routines
                                    (OSF/1)
        -mieee-with-inexact         This switch lacks documentation
      
      posted in 作业计算出错
      S
      Sephirah
    • 1 / 1