Bill Allombert on Tue, 20 Oct 2020 17:37:32 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: parallel gp in windows


On Tue, Oct 20, 2020 at 03:24:59PM +0000, Brereton, Ashley wrote:
> Hi there,
> 
> I was wondering if somebody knew how to make a simple parfor loop work on my windows computer.

Hello Ashley,
Could you clarify which GP binary you are using and which Windows version
you are using ?

Thread-local variables support on 32bit windows is very slow.

Please tell us what gives
\v
and
default(nbthreads)

> func2(a,b)=  abs(  prodeuler(X=2,10000,1/( 1-1/X^(1+(a+b)*2*Pi*I/log(2))))  )
> 
> export(func2)
> 
> parfor (count=1, , func2(1e35,count)>5 , r, if (r, return (count)))

Your code seems correct.
What gives
##
after the computation ?

? parfor (count=1, , func2(1e35,count)>5 , r, if (r, return (count)))
%4 = 1250
? ##
  ***   last result: cpu time 35,559 ms, real time 8,911 ms.

Cheers,
Bill