Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by George Vega View Post
    Hi all,

    Lucien, as Matthew points out, the default behavior of parallel is to split the dataset into how many threads you are using. Nonetheless, parallel is perfectly capable of doing what you are trying to do. What you need to do is:
    1. Write a program that loads the dataset with use ...
    2. Within that program, make use of the parallel macros $PLL_CHILDREN (global, number of threads) and $pll_instance (global, takes values 1 through $PLL_CHILDREN) to control what chunk of the loop is done per thread.
    3. At the end of the program, you can do something like save "iteration_$pll_instance`'.dat", replace to make each thread save a different version of the file.
    4. Then you can use parallel append, do(yourprogram) e("iteration_%g.dat, 1/$PLL_CHILDREN").
    More examples on how to use the parallel macros here and here.

    HIH

    George
    Highly informative, George. I've ceartainly learnt something new. Thanks so much for helping out!

    Comment


    • #32
      Hi
      Woa wooo ^)
      Without your help I would have never thought of this.
      Thank you very much.
      I'm going to implement it, and I'm going to look at your page to better understand how it works.
      I think this will work. If not, we are always together in case of problems, and if of course, I can't find a solution on the github page.
      Many thanks George, and thanks again to Matthew

      Comment

      Working...
      X