[Molds-dev] [molds] #28955: parallelization misstake in BFGS

Back to archive index

SourceForge Ticket System norep****@sourc*****
2012年 7月 8日 (日) 22:39:04 JST


#28955: parallelization misstake in BFGS

  Open Date: 2012-07-08 22:39
Last Update: 2012-07-08 22:39

URL for this Ticket:
    http://sourceforge.jp/ticket/browse.php?group_id=6231&tid=28955
RSS feed for this Ticket:
    http://sourceforge.jp/ticket/ticket_rss.php?group_id=6231&tid=28955

---------------------------------------------------------------------

Last Changes/Comment for this Ticket:
2012-07-08 22:39 Update by: mikiya_fujii

 * New Ticket "parallelization misstake in BFGS" created

---------------------------------------------------------------------
Ticket Status:

      Reporter: mikiya_fujii
         Owner: ktns
          Type: バグ
        Status: オープン
      Priority: 5 - 中
     MileStone: ver0.2
     Component: (未割り当て)
      Severity: 5 - 中
    Resolution: なし
---------------------------------------------------------------------

Ticket details:

PK at l. 357 in BFGS.cpp should be reductive variable.

cf.
{{{
$ svn diff optimization/BFGS.cpp 
Index: optimization/BFGS.cpp
===================================================================
--- optimization/BFGS.cpp	(revision 871)
+++ optimization/BFGS.cpp	(working copy)
@@ -352,7 +352,7 @@
          P[i] = - (vectorForce[i] - vectorOldForce[i]);
       }
       double PK = 0; // P_k^T K_k at second term at RHS of Eq. (13) in [SJTO_1983]
-#pragma omp parallel for schedule(auto)
+#pragma omp parallel for schedule(auto) reduction(+:PK)
       for(int i=0; i<dimension;i++){
          PK += P[i] * K[i];
       }
}}}



-- 
This is Ticket on Project MolDS.
MolDS Project hosted on SourceForge.JP.

Project URL: http://sourceforge.jp/projects/molds
SourceForge.JP: http://sourceforge.jp

URL for this Ticket:
    http://sourceforge.jp/ticket/browse.php?group_id=6231&tid=28955
RSS feed for this Ticket:
    http://sourceforge.jp/ticket/ticket_rss.php?group_id=6231&tid=28955




MolDS-dev メーリングリストの案内
Back to archive index