FW: Is GMP safe for using on multi core processors with openmp or pthreads?

Torbjorn Granlund tg at gmplib.org
Thu Jul 30 22:56:13 CEST 2009

David Carver <dcarver at tacc.utexas.edu> writes:

  You are right that you can trigger the problem with a simple openmp
  (multithreaded) malloc loop, but don't you think an application
  library that has a strong dependency on malloc should have a caution
  in the documentation for the developer using OpenMP and multiple

Perhaps, and the text in my last letter was largely quoted from the GMP
manual: http://gmplib.org/manual/Reentrancy.html

I don't think we can do much more than that.  Do you disagree?


More information about the gmp-discuss mailing list