Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divide by zero allowed? #182

Open
mankoff opened this issue Jul 24, 2023 · 3 comments
Open

Divide by zero allowed? #182

mankoff opened this issue Jul 24, 2023 · 3 comments

Comments

@mankoff
Copy link

mankoff commented Jul 24, 2023

I'm getting the following error:

Thread 1 "r01.exe" received signal SIGFPE, Arithmetic exception.
0x00007ffff7b58b12 in blitz::Divide<double, double>::apply (a=1, b=0) at /home/kdm/projects/GISS/LIME/opt/include/blitz/ops.h:147
147	BZ_DEFINE_BINARY_OP(Divide,/)

From this line:

blitz::Array<double,1> sIpvXOp(1. / IpvXOp->wM);

Is there a flag I can set to allow divide-by-zero to return NaNs rather than SIGFPE? I've compiled Blitz with

CFLAGS="-fPIC" \
 FCFLAGS="-fPIC -DNDEBUG" \
 CPPFLAGS="-fPIC -DNDEBUG" \
 cmake .. \
  -D CMAKE_INSTALL_PREFIX=${LIME_ROOT}/opt \
  -D CMAKE_INSTALL_LIBDIR=${LIME_ROOT}/opt/lib \
  -D Python_EXECUTABLE=${MAMBA_ENV}/lime/bin/python

make -j
make install

(original issue at NASA-GISS/LIME#1)

@citibeth
Copy link
Contributor

It looks like this is being built with GCC. As per GNU docs, compile with traps converts NaNs into arithmetic exceptions:

https://www.gnu.org/software/libc/manual/html_node/FP-Exceptions.html

It's hard to know what flags you are calling GCC with because a lot of stuff could be hidden inside the CMake file. Instead of make -j, try running VERBOSE=1 make (or make VERBOSE=1) to get the GCC command line being used to build Blitz++.

Have you tried compiling Blitz++ without traps, but ModelE with traps? Is there a debugging need for traps within the Blitz++ code?

@mankoff
Copy link
Author

mankoff commented Jul 24, 2023

Yes, I'd like traps for ModelE, IceBin, etc. but not lower level code like blitz or PETSc (although sometimes trapping in PETSc is helpful to find matrix dimension disagreements). I was trying to achieve that with the -DNDEBUG flag. Do you have suggestions for other options?

I added -D CMAKE_VERBOSE_MAKEFILE=ON to the cmake .. command, and VERBOSE=1 make.

results
$ VERBOSE=1 make
/usr/bin/cmake -S/home/kdm/projects/GISS/LIME/src/blitz -B/home/kdm/projects/GISS/LIME/src/blitz/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/kdm/projects/GISS/LIME/src/blitz/build/CMakeFiles /home/kdm/projects/GISS/LIME/src/blitz/build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/array/CMakeFiles/stencil-classes.cc.dir/build.make blitz/array/CMakeFiles/stencil-classes.cc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/array /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/array /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/array/CMakeFiles/stencil-classes.cc.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/array/CMakeFiles/stencil-classes.cc.dir/build.make blitz/array/CMakeFiles/stencil-classes.cc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/array && /home/kdm/local/mambaforge/envs/lime/bin/python /home/kdm/projects/GISS/LIME/src/blitz/blitz/array/../generate/genstencils.py stencil-classes.cc MAIN_DEPENDENCY /home/kdm/projects/GISS/LIME/src/blitz/blitz/array/../generate/genstencils.py
Generating file stencil-classes.cc
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[  0%] Built target stencil-classes.cc
make  -f blitz/generate/CMakeFiles/genvecbops.dir/build.make blitz/generate/CMakeFiles/genvecbops.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecbops.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genvecbops.dir/genvecbops.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecbops.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genvecbops
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genvecbops.dir/build.make blitz/generate/CMakeFiles/genvecbops.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genvecbops.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[  8%] Built target genvecbops
make  -f blitz/CMakeFiles/vecbops.cc.dir/build.make blitz/CMakeFiles/vecbops.cc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/vecbops.cc.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/vecbops.cc.dir/build.make blitz/CMakeFiles/vecbops.cc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genvecbops
Generating 
1350 operators written.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[  8%] Built target vecbops.cc
make  -f blitz/generate/CMakeFiles/genvecuops.dir/build.make blitz/generate/CMakeFiles/genvecuops.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecuops.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genvecuops.dir/genvecuops.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecuops.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genvecuops
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genvecuops.dir/build.make blitz/generate/CMakeFiles/genvecuops.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genvecuops.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 16%] Built target genvecuops
make  -f blitz/CMakeFiles/vecuops.cc.dir/build.make blitz/CMakeFiles/vecuops.cc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/vecuops.cc.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/vecuops.cc.dir/build.make blitz/CMakeFiles/vecuops.cc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genvecuops
Generating 
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 16%] Built target vecuops.cc
make  -f blitz/generate/CMakeFiles/genvecwhere.dir/build.make blitz/generate/CMakeFiles/genvecwhere.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecwhere.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genvecwhere.dir/genvecwhere.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecwhere.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genvecwhere
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genvecwhere.dir/build.make blitz/generate/CMakeFiles/genvecwhere.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genvecwhere.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 25%] Built target genvecwhere
make  -f blitz/CMakeFiles/vecwhere.cc.dir/build.make blitz/CMakeFiles/vecwhere.cc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/vecwhere.cc.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/vecwhere.cc.dir/build.make blitz/CMakeFiles/vecwhere.cc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genvecwhere
Generating 
875 specializations written.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 25%] Built target vecwhere.cc
make  -f blitz/generate/CMakeFiles/genvecbfn.dir/build.make blitz/generate/CMakeFiles/genvecbfn.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecbfn.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genvecbfn.dir/genvecbfn.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genvecbfn.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genvecbfn
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genvecbfn.dir/build.make blitz/generate/CMakeFiles/genvecbfn.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genvecbfn.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 33%] Built target genvecbfn
make  -f blitz/CMakeFiles/vecbfn.cc.dir/build.make blitz/CMakeFiles/vecbfn.cc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/vecbfn.cc.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/vecbfn.cc.dir/build.make blitz/CMakeFiles/vecbfn.cc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genvecbfn
Generating 
150 operators written.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 33%] Built target vecbfn.cc
make  -f blitz/generate/CMakeFiles/genmatbops.dir/build.make blitz/generate/CMakeFiles/genmatbops.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genmatbops.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genmatbops.dir/genmatbops.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genmatbops.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genmatbops
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genmatbops.dir/build.make blitz/generate/CMakeFiles/genmatbops.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genmatbops.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 41%] Built target genmatbops
make  -f blitz/CMakeFiles/matbops.h.dir/build.make blitz/CMakeFiles/matbops.h.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/matbops.h.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/matbops.h.dir/build.make blitz/CMakeFiles/matbops.h.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genmatbops
Generating 
480 operators written.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 41%] Built target matbops.h
make  -f blitz/generate/CMakeFiles/genmatuops.dir/build.make blitz/generate/CMakeFiles/genmatuops.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genmatuops.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genmatuops.dir/genmatuops.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genmatuops.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genmatuops
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genmatuops.dir/build.make blitz/generate/CMakeFiles/genmatuops.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genmatuops.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 50%] Built target genmatuops
make  -f blitz/CMakeFiles/matuops.h.dir/build.make blitz/CMakeFiles/matuops.h.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/matuops.h.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/matuops.h.dir/build.make blitz/CMakeFiles/matuops.h.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genmatuops
Generating 
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 50%] Built target matuops.h
make  -f blitz/generate/CMakeFiles/genmathfunc.dir/build.make blitz/generate/CMakeFiles/genmathfunc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genmathfunc.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genmathfunc.dir/genmathfunc.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genmathfunc.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genmathfunc
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genmathfunc.dir/build.make blitz/generate/CMakeFiles/genmathfunc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genmathfunc.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 58%] Built target genmathfunc
make  -f blitz/CMakeFiles/mathfunc.h.dir/build.make blitz/CMakeFiles/mathfunc.h.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/mathfunc.h.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/mathfunc.h.dir/build.make blitz/CMakeFiles/mathfunc.h.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genmathfunc
Generating 
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 58%] Built target mathfunc.h
make  -f blitz/generate/CMakeFiles/genpromote.dir/build.make blitz/generate/CMakeFiles/genpromote.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genpromote.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genpromote.dir/genpromote.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genpromote.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genpromote
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genpromote.dir/build.make blitz/generate/CMakeFiles/genpromote.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genpromote.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 66%] Built target genpromote
make  -f blitz/CMakeFiles/promote-old.h.dir/build.make blitz/CMakeFiles/promote-old.h.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/CMakeFiles/promote-old.h.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/CMakeFiles/promote-old.h.dir/build.make blitz/CMakeFiles/promote-old.h.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genpromote
Generating 
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 66%] Built target promote-old.h
make  -f blitz/generate/CMakeFiles/genarrbops.dir/build.make blitz/generate/CMakeFiles/genarrbops.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genarrbops.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genarrbops.dir/genarrbops.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genarrbops.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genarrbops
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genarrbops.dir/build.make blitz/generate/CMakeFiles/genarrbops.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genarrbops.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 75%] Built target genarrbops
make  -f blitz/array/CMakeFiles/bops.cc.dir/build.make blitz/array/CMakeFiles/bops.cc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/array /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/array /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/array/CMakeFiles/bops.cc.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/array/CMakeFiles/bops.cc.dir/build.make blitz/array/CMakeFiles/bops.cc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genarrbops
Generating 
780 operators written.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 75%] Built target bops.cc
make  -f blitz/generate/CMakeFiles/genarruops.dir/build.make blitz/generate/CMakeFiles/genarruops.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genarruops.dir/DependInfo.cmake --color=
Dependencies file "blitz/generate/CMakeFiles/genarruops.dir/genarruops.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/CMakeFiles/genarruops.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target genarruops
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/generate/CMakeFiles/genarruops.dir/build.make blitz/generate/CMakeFiles/genarruops.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'blitz/generate/CMakeFiles/genarruops.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 83%] Built target genarruops
make  -f blitz/array/CMakeFiles/uops.cc.dir/build.make blitz/array/CMakeFiles/uops.cc.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/blitz/array /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/array /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/array/CMakeFiles/uops.cc.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f blitz/array/CMakeFiles/uops.cc.dir/build.make blitz/array/CMakeFiles/uops.cc.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate && /home/kdm/projects/GISS/LIME/src/blitz/build/blitz/generate/genarruops
Generating 
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 83%] Built target uops.cc
make  -f CMakeFiles/generated-headers.dir/build.make CMakeFiles/generated-headers.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/CMakeFiles/generated-headers.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f CMakeFiles/generated-headers.dir/build.make CMakeFiles/generated-headers.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'CMakeFiles/generated-headers.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 83%] Built target generated-headers
make  -f src/CMakeFiles/blitz.dir/build.make src/CMakeFiles/blitz.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/src /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/src /home/kdm/projects/GISS/LIME/src/blitz/build/src/CMakeFiles/blitz.dir/DependInfo.cmake --color=
Dependencies file "src/CMakeFiles/blitz.dir/globals.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/src/CMakeFiles/blitz.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target blitz
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f src/CMakeFiles/blitz.dir/build.make src/CMakeFiles/blitz.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'src/CMakeFiles/blitz.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[ 91%] Built target blitz
make  -f src/CMakeFiles/blitz-static.dir/build.make src/CMakeFiles/blitz-static.dir/depend
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
cd /home/kdm/projects/GISS/LIME/src/blitz/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kdm/projects/GISS/LIME/src/blitz /home/kdm/projects/GISS/LIME/src/blitz/src /home/kdm/projects/GISS/LIME/src/blitz/build /home/kdm/projects/GISS/LIME/src/blitz/build/src /home/kdm/projects/GISS/LIME/src/blitz/build/src/CMakeFiles/blitz-static.dir/DependInfo.cmake --color=
Dependencies file "src/CMakeFiles/blitz-static.dir/globals.cpp.o.d" is newer than depends file "/home/kdm/projects/GISS/LIME/src/blitz/build/src/CMakeFiles/blitz-static.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target blitz-static
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make  -f src/CMakeFiles/blitz-static.dir/build.make src/CMakeFiles/blitz-static.dir/build
make[2]: Entering directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
make[2]: Nothing to be done for 'src/CMakeFiles/blitz-static.dir/build'.
make[2]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
[100%] Built target blitz-static
make[1]: Leaving directory '/home/kdm/projects/GISS/LIME/src/blitz/build'
/usr/bin/cmake -E cmake_progress_start /home/kdm/projects/GISS/LIME/src/blitz/build/CMakeFiles 0
t480:~/projects/GISS/LIME/src/blitz/build [master▷] $ 

@mankoff
Copy link
Author

mankoff commented Jul 24, 2023

ModelE COMPILE_WITH_TRAPS sets -fbounds-check -fcheck-array-temporaries -ffpe-trap=invalid,zero,overflow -fbacktrace. Should I compile Blitz with explicit -fno-... for each of those?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants