Fixed remaining false positives, tested that intentionally added errors are still detected

This commit is contained in:
Jeffrey Garretson
2023-04-13 22:50:48 -06:00
parent 1bcfacb171
commit 30880c84b2
5 changed files with 31 additions and 6 deletions

View File

@@ -79,9 +79,14 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
string(APPEND CMAKE_Fortran_FLAGS " -fPIC")
#Production
set(PROD "-align array64byte -align rec32byte -no-prec-div -fast-transcendentals")
#Production with Debug Info
set(PRODWITHDEBUGINFO "-traceback -debug all -align array64byte -align rec32byte -no-prec-div -fast-transcendentals")
#Debug
set(DEBUG "-traceback -check bounds -check uninit -debug all -gen-interfaces -warn interfaces -fp-stack-check")
set(PRODWITHDEBUGINFO "-traceback -debug all -align array64byte -align rec32byte -no-prec-div -fast-transcendentals")
if(NOT DISABLE_DEBUG_BOUNDS_CHECKS)
set(DEBUG "-traceback -check bounds -check uninit -debug all -gen-interfaces -warn interfaces -fp-stack-check")
else()
set(DEBUG "-traceback -debug all -gen-interfaces -warn interfaces")
endif()
#Now do OS-dep options
if (CMAKE_SYSTEM_NAME MATCHES Darwin)
@@ -113,7 +118,11 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
#Production
set(PROD "-ffast-math")
#Debug
set(DEBUG "-fbacktrace -g -Warray-temporaries -Wall -Wfatal-errors -finit-local-zero")
if(NOT DISABLE_DEBUG_BOUNDS_CHECKS)
set(DEBUG "-fbacktrace -g -Warray-temporaries -Wall -Wfatal-errors -finit-local-zero")
else()
set(DEBUG "-fbacktrace -g -Warray-temporaries -Wall -Wfatal-errors")
endif()
#Now do machine-dep options
if (CMAKE_SYSTEM_NAME MATCHES Darwin)
string(APPEND CMAKE_Fortran_FLAGS " -Wl,-stack_size,0x40000000,-stack_addr,0xf0000000")

View File

@@ -89,7 +89,7 @@ os.chdir('intelChecks')
#arguments = arguments + "cd" + home + ";"
#arguments = arguments + "cd kaiju/unitTest1;"
# Invoke cmake
arguments = arguments + "cmake ../ -DALLOW_INVALID_COMPILERS=ON -DENABLE_MPI=ON -DENABLE_MKL=ON -DCMAKE_BUILD_TYPE=DEBUG;"
arguments = arguments + "cmake ../ -DALLOW_INVALID_COMPILERS=ON -DDISABLE_DEBUG_BOUNDS_CHECKS=ON -DENABLE_MPI=ON -DENABLE_MKL=ON -DCMAKE_BUILD_TYPE=DEBUG;"
# Make gamera, voltron and allTests
arguments = arguments + "make gamera_mpi; make voltron_mpi;"
print(arguments)

View File

@@ -82,3 +82,11 @@ Suppression = {
}
}
Suppression = {
Stacks = {
{
mod=voltron_mpi.x, func=for__io_return;
}
}
}

View File

@@ -30,3 +30,11 @@ Suppression = {
}
}
Suppression = {
Stacks = {
{
mod=voltron_mpi.x, func=__svml_*;
}
}
}

View File

@@ -2,8 +2,8 @@
<!-- Gamera Magnetosphere -->
<kaiju>
<voltron>
<time tFin="20.0"/>
<spinup doSpin="T" tSpin="10.0" tIO="0.0"/>
<time tFin="6.5"/>
<spinup doSpin="T" tSpin="5.0" tIO="0.0"/>
<coupling dtCouple="5.0" rTrc="40.0" imType="RCM" doQkSquish="T" doDynDT="F" doAsyncCoupling="T"/>
<restart dtRes="1800.0"/>
<imag doInit="T"/>