Skip to content

Commit

Permalink
[cmsdy] regenerate pp_dy012j.mad with the option to set CUDACPP_RUNTI…
Browse files Browse the repository at this point in the history
…ME_DISABLEFPE madgraph5#942
  • Loading branch information
valassi committed Aug 7, 2024
1 parent e59ce5f commit 86ff83e
Show file tree
Hide file tree
Showing 78 changed files with 721 additions and 569 deletions.
526 changes: 263 additions & 263 deletions epochX/cudacpp/pp_dy012j.mad/CODEGEN_mad_pp_dy012j_log.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions epochX/cudacpp/pp_dy012j.mad/Cards/me5_configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
# pineappl = pineappl


#mg5_path = /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo
#mg5_path = /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/mg5amcnlo

# MG5 MAIN DIRECTORY
#mg5_path = /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo
#mg5_path = /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/mg5amcnlo
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

#include <algorithm>
#include <array>
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cfenv> // for feenableexcept, fegetexcept and FE_XXX
#include <cfloat> // for FLT_MIN
#include <cstdlib> // for getenv
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down Expand Up @@ -63,7 +64,8 @@ fpeEnable()
//std::cout << "fpeEnable: FE_INVALID is" << ( ( fpes & FE_INVALID ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_OVERFLOW is" << ( ( fpes & FE_OVERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
//std::cout << "fpeEnable: FE_UNDERFLOW is" << ( ( fpes & FE_UNDERFLOW ) ? " " : " NOT " ) << "enabled" << std::endl;
constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
//constexpr bool enableFPE = true; // this is hardcoded and no longer controlled by getenv( "CUDACPP_RUNTIME_ENABLEFPE" )
static const bool enableFPE = !getenv( "CUDACPP_RUNTIME_DISABLEFPE" ); // TEMPORARY? allow bypassing FPEs in CMS DY #942
if( enableFPE )
{
std::cout << "INFO: The following Floating Point Exceptions will cause SIGFPE program aborts: FE_DIVBYZERO, FE_INVALID, FE_OVERFLOW" << std::endl;
Expand All @@ -78,7 +80,7 @@ fpeEnable()
}
else
{
//std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions" << std::endl;
std::cout << "INFO: Do not enable SIGFPE traps for Floating Point Exceptions (CUDACPP_RUNTIME_DISABLEFPE is non-empty)" << std::endl;
}
#else
//std::cout << "INFO: Keep default SIGFPE settings because feenableexcept is not available on MacOS" << std::endl;
Expand Down
Loading

0 comments on commit 86ff83e

Please sign in to comment.