Skip to content

FPE in icpx tests when gtest was built with a different compiler #738

@valassi

Description

@valassi

FPE in icpx tests when gtest was built with a different compiler

This is a followup to #736. After fixing FPEs in sqrt in ixx/oxx/vxx, there are now FPEs deep inside gtest.

[avalassi@itscrd90 icx2023/cvmfs] /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx> make cleanall; make -j -f cudacpp.mk FPTYPE=f AVX=avx2
...
[avalassi@itscrd90 icx2023/cvmfs] /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx> ./runTest.exe 
Running main() from /data/avalassi/GPU2023/madgraph4gpuX/test/googletest/googletest/src/gtest_main.cc
[==========] Running 6 tests from 6 test suites.
[----------] Global test environment set-up.
[----------] 1 test from SIGMA_SM_GG_TTX_CPU_XXX
[ RUN      ] SIGMA_SM_GG_TTX_CPU_XXX.testxxx
Floating Point Exception (CPU neppV=8): 'ixxxxx' ievt=18
[avalassi@itscrd90 icx2023/cvmfs] /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx> gdb ./runTest.exe
...
(gdb) where
#0  0x00007ffff444bea8 in nextafterf64 () from /lib64/libm.so.6
#1  0x00000000004976eb in testing::internal::DoubleNearPredFormat(char const*, char const*, char const*, double, double, double) ()
#2  0x0000000000448359 in SIGMA_SM_GG_TTX_CPU_XXX_testxxx_Test::TestBody()::$_1::operator()(mg5amcCpu::cxtype_v const*, char const*, int, int, float) const (this=this@entry=0x7fffffff93c0, wf=wf@entry=0x7fffffff9a80, xxx=0x54ce94 "ixxxxx", ievt=<optimized out>, 
    nsp=<optimized out>, mass=<optimized out>) at testxxx.cc:219
#3  0x0000000000442eba in SIGMA_SM_GG_TTX_CPU_XXX_testxxx_Test::TestBody (this=<optimized out>) at testxxx.cc:340

This is using a googletest built using gcc11.3. I checked and the FPE disappears (it becomes an error) if gtest is built using icpx

This is related to #125: googletest should be rebuilt when using a different compiler

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions