I have tried it, it does not change anything.

-----Ursprüngliche Nachricht-----
Von: JonY [mailto:jo...@users.sourceforge.net] 
Gesendet: Mittwoch, 16. März 2016 12:57
An: mingw-w64-public@lists.sourceforge.net
Betreff: Re: [Mingw-w64-public] Floating-Point Operations Not Deterministic 
When Excecuted Asynchronously

On 3/15/2016 23:15, Benjamin Bihler wrote:
> I have taken commit d82c6defa723b6e7986091ce0fb74da544b9e0f6 ("Reset 
> thread floating point settings on new thread") from the master branch 
> of the mingw64 repository, compiled it and replaced the respective 
> files in the "include" and "lib" folder of the "x86_64-mingw32"
> folder of my mingww64 5.3.0 installation with the newly compiled 
> files.
> 
> Then I have compiled my sample file with this modified mingw64 
> installation. It had no effect, the two threads give different 
> results. I have checked that the executable depends only on the DLLs 
> Kernel32.dll and Msvcrt.dll.
> 
> When I add
> 
> _fpreset()
> 
> as the first command of the method that is run asynchronously, both 
> threads give the same result. But this has already been the case with 
> the unmodified mingw64 compiler (without overwriting the link binaries 
> with those from the new revision), I have checked that.
> 
> My sample is a C++ sample, since I am using the gnu++11 features.
> 
> It would be painful for me, if I had to add _fpreset() to all methods 
> that I want to run asynchronously, especially since they may be part 
> of other libraries.
> 
> Did I patch my mingw64 installation in a wrong way? Otherwise it seems 
> as if the commit mentioned above does not solve my problem.
> 
> Does anyone have another idea? Thanks!


Hi,

Can you try with the latest code? I have just moved the _fpreset call, 
hopefully it gets called correctly this time.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to