NaN's during compile?

James
2012-07-17
2013-01-09
  • James

    James - 2012-07-17

    Hi all!

    I'm compiling ATLAS to use as a BLAS library for it++. During my ATLAS compile, I get several timing runs with NaN's:

    gcc-4 -DL2SIZE=4194304 -I/mount/p/ATLAS/build_final/include -I/mount/p/ATLAS/build_final/..//include -I/mount/p/ATLAS/build_final/..//include/contrib -DAdd__ -DF77_INTEGER=int -DStringSunStyle -DATL_OS_Win64 -DATL_ARCH_Corei1 -DATL_CPUMHZ=2806 -DGCCWIN -DUseClock -DATL_SSE3 -DATL_SSE2 -DATL_SSE1 -DATL_GAS_x8632 -m32  -DATL_NCPU=8 -fomit-frame-pointer -mfpmath=sse -O2 -fno-schedule-insns2 -msse3 -m32  -mstackrealign -o xds1nxtune ds1nxtune.o \
                       ATL_dsyr_NX.o /mount/p/ATLAS/build_final/lib/libtstatlas.a /mount/p/ATLAS/build_final/lib/libatlas.a
    make[4]: Leaving directory `/mount/p/ATLAS/build_final/tune/blas/ger'
    /mount/p/ATLAS/build_final/bin/ATLrun.sh /mount/p/ATLAS/build_final/tune/blas/ger xds1nxtune -U u -n 2000 -r 1 -s 10 -C 0 \
                      -o /mount/p/ATLAS/build_final/include/atlas_dsyrNX.h
       Time for N=NX=2000 : 0.000000e+00
         N    NX    % of N=16
    ======  ====  ===========
      2000  1000          [b]nan[/b]
      2000   496          [b]nan[/b]
      2000   248          [b]nan[/b]
      2000   120          [b]nan[/b]
      2000    56          [b]nan[/b]
      2000    24          [b]nan[/b]
      2000     8          [b]nan[/b]
      2000     0          [b]nan[/b]
    NX selected as [b]0[/b] ([b]inf[/b]%)!
    NX=0!
    

    Is this normal???

    'make check' does pass however:

    DONE BUILDING TESTERS, RUNNING:
    SCOPING FOR FAILURES IN BIN TESTS:
    fgrep -e fault -e FAULT -e error -e ERROR -e fail -e FAIL \
            bin/sanity.out
    8 cases: 8 passed, 0 skipped, 0 failed
    4 cases: 4 passed, 0 skipped, 0 failed
    8 cases: 8 passed, 0 skipped, 0 failed
    4 cases: 4 passed, 0 skipped, 0 failed
    8 cases: 8 passed, 0 skipped, 0 failed
    4 cases: 4 passed, 0 skipped, 0 failed
    8 cases: 8 passed, 0 skipped, 0 failed
    4 cases: 4 passed, 0 skipped, 0 failed
    DONE
    SCOPING FOR FAILURES IN CBLAS TESTS:
    fgrep -e fault -e FAULT -e error -e ERROR -e fail -e FAIL \
            interfaces/blas/C/testing/sanity.out | \
                    fgrep -v PASSED
    Make.top:27: recipe for target `sanity_test' failed
    make[1]: [sanity_test] Error 1 (ignored)
    DONE
    SCOPING FOR FAILURES IN F77BLAS TESTS:
    fgrep -e fault -e FAULT -e error -e ERROR -e fail -e FAIL \
            interfaces/blas/F77/testing/sanity.out | \
                    fgrep -v PASSED
    Make.top:27: recipe for target `sanity_test' failed
    make[1]: [sanity_test] Error 1 (ignored)
    DONE
    

    This is for ATLAS 3.10.0 compiling on cygwin running on Win7-64 using the following configure command:

    cd ATLAS
    mkdir build
    cd build
    ../configure --prefix=/home/James/ATLAS -b 32
    

    Thanks!

     
  • R. Clint Whaley

    R. Clint Whaley - 2012-07-17

    The usual cause of this is that you have used a very poor resolution timer.  If you install with the PentiumCPS discussed in the install guide, or even just WALL (also discussed there), this problem should go away.

     

Log in to post a comment.