We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee5d20a commit 86e844aCopy full SHA for 86e844a
2 files changed
GPU/GPUTracking/Definitions/GPUSettingsList.h
@@ -521,7 +521,7 @@ AddOption(outputcontrolmem, uint64_t, 0, "outputMemory", 0, "Use predefined outp
521
AddOption(inputcontrolmem, uint64_t, 0, "inputMemory", 0, "Use predefined input buffer of this size", min(0ul), message("Using %s bytes as input memory"))
522
AddOption(cpuAffinity, int32_t, -1, "", 0, "Pin CPU affinity to this CPU core", min(-1))
523
AddOption(fifoScheduler, bool, false, "", 0, "Use FIFO realtime scheduler", message("Setting FIFO scheduler: %s"))
524
-AddOption(fpe, bool, true, "", 0, "Trap on floating point exceptions")
+AddOption(fpe, int8_t, -1, "", 0, "Trap on floating point exceptions (-1 = if no ffast-math)")
525
AddOption(flushDenormals, bool, true, "", 0, "Enable FTZ and DAZ (Flush all denormals to zero)")
526
AddOption(solenoidBzNominalGPU, float, -1e6f, "", 0, "Field strength of solenoid Bz in kGaus")
527
AddOption(constBz, bool, false, "", 0, "Force constand Bz")
GPU/GPUTracking/Standalone/Benchmark/standalone.cxx
@@ -142,7 +142,11 @@ int32_t ReadConfiguration(int argc, char** argv)
142
return 1;
143
}
144
145
+#ifdef __FAST_MATH__
146
+ if (configStandalone.fpe == 1) {
147
+#else
148
if (configStandalone.fpe) {
149
+#endif
150
feenableexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
151
152
if (configStandalone.flushDenormals) {
@@ -158,7 +162,7 @@ int32_t ReadConfiguration(int argc, char** argv)
158
162
printf("FIFO Scheduler setting not supported on Windows\n");
159
163
160
164
161
- if (configStandalone.fpe) {
165
166
printf("FPE not supported on Windows\n");
167
168
0 commit comments