OmniThreadLibrary forum
News: SMF - Just Installed!
 
*
Welcome, Guest. Please login or register. May 17, 2012, 06:00:44 PM


Login with username, password and session length


Pages: [1]   Go Down

Author Topic: 36_ParallelAggregate both"Parallel 2" button hang  (Read 164 times)

sum

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
36_ParallelAggregate both"Parallel 2" button hang
« on: December 24, 2011, 07:58:04 PM »

I am using D2010 and OmniThreadLibrary V2.2

In the Delpi IDE,it show "app_36_ParallelAggregate.exe raised eception with Message "TOmniValue cannot be converted to int64""

1 more question,
    Parallel.ForEach(1, inpMaxPrime.Value)
    .NumTasks(inpNumCPU.Value)
    .Aggregate(0, (<-- what do Aggregate mean ?
Logged

Primoz Gabrijelcic

  • Administrator
  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • Email
Re: 36_ParallelAggregate both"Parallel 2" button hang
« Reply #1 on: December 27, 2011, 04:56:36 AM »

1) This was already fixed - grab the fresh copy from the SVN or wait few days for the 3.0 release.
2) Aggregate is called after each loop iteration and can be used to make a summary of results. It is not really documented much - see post http://17slon.com/blogs/gabr/2010/02/parallelforeachaggregate.html and especially comments for more information. [Yes, I do have to write a better documentation on that.]
Logged
Pages: [1]   Go Up
 
 

Powered by MySQL Powered by PHP Powered by SMF 2.0.2 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM