- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
colleagues,
I have a piece of code that ran in release mode and generated a floating point error in debug mode until I changed the debug mode "floating point model" compiler setting from "fast" to "strict." The code now runs but I am unsure as to whether I have fixed the problem or whether I have just masked it. I noticed some similar posts on the /fp:strict setting and should note that I am using version 11.0. If I've just masked the problem, can anyone suggest a way of looking for the cause - the floating point divide by zero error doesn't occur until much later in the program execution (ie I know that the problem is caused early in execution but doesn't cause a crash until much later).
Thanks as always for your assistance,
David
I have a piece of code that ran in release mode and generated a floating point error in debug mode until I changed the debug mode "floating point model" compiler setting from "fast" to "strict." The code now runs but I am unsure as to whether I have fixed the problem or whether I have just masked it. I noticed some similar posts on the /fp:strict setting and should note that I am using version 11.0. If I've just masked the problem, can anyone suggest a way of looking for the cause - the floating point divide by zero error doesn't occur until much later in the program execution (ie I know that the problem is caused early in execution but doesn't cause a crash until much later).
Thanks as always for your assistance,
David
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the error occurs fordebug compilations, why not run your program from the Visual Studio and when the error pops up 'break' execution and see what iscausing of the error?
Also know where inexecution (loop, time, whatever) the error occurs and add some dumps might be enlightening as to what variable/calculation might be producing the error.
I expect the fast option v strict option is related tostorage of intermediate 'results' (INTEL chime in here).
Also know where inexecution (loop, time, whatever) the error occurs and add some dumps might be enlightening as to what variable/calculation might be producing the error.
I expect the fast option v strict option is related tostorage of intermediate 'results' (INTEL chime in here).

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page