David, I am not sure how properly to report this in this review period . . .
If I use: taskPool.reduce ! ( "a + b" ) ( 0.0 , outputData ) then it works. If however I try: taskPool.reduce ! ( ( a , b ) { return a + b ; } ) ( 0.0 , outputData ) I get: pi_d2_parallelMap.d(58): Error: template instance cannot use local '__dgliteral1(__T2,__T3)' as parameter to non-global template reduce(functions...) which doesn't really work for me :-(( If I try taskPool.reduce ! ( function double ( double a , double b ) { return a + b ; } ) ( 0.0 , outputData ) then I get: pi_d2_parallelMap.d(59): Error: function std.parallelism.__funcliteral1 cannot access frame of function pi_d2_parallelMap.execute.__funcliteral1 pi_d2_parallelMap.d(59): Error: function std.parallelism.__funcliteral1 cannot access frame of function pi_d2_parallelMap.execute.__funcliteral1 which is just the error I get with the sequential map and so a compiler problem, I just added it for completeness. Thanks. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@russel.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part