Return-Path: Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: (qmail 74390 invoked from network); 17 May 2010 09:28:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 09:28:07 -0000 Received: (qmail 838 invoked by uid 500); 17 May 2010 09:28:07 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 764 invoked by uid 500); 17 May 2010 09:28:06 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 756 invoked by uid 99); 17 May 2010 09:28:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 09:28:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 09:28:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4H9RgOf009465 for ; Mon, 17 May 2010 09:27:42 GMT Message-ID: <14960943.79201274088462208.JavaMail.jira@thor> Date: Mon, 17 May 2010 05:27:42 -0400 (EDT) From: "Edward J. Yoon (JIRA)" To: hama-dev@incubator.apache.org Subject: [jira] Commented: (HAMA-257) Design BSP program code interface In-Reply-To: <8698879.12821273724325604.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HAMA-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868146#action_12868146 ] Edward J. Yoon commented on HAMA-257: ------------------------------------- As simply mentioned before, some kind of parser will be needed to provide intuitive programming API. for example, below psuedo code is BSPLib style and it looks like a perfect serial code, by wapping the parallel part with bsp_begin() and bsp_end() methods with bsp_sync() method. // Loop over all vertices for (i = 0; i < vertices.length; i++) { bsp_begin(); double total = 0.0; int begin = index[ind]; int end = index[ind + 1]; //System.out.println("incoming edges: " + begin +" ~ "+ end); // Loop over edges pointing to vertex i. for (int j = begin; j < end; j++) { int src = j; double r = rank[src]; double incr = r / (double) degree[src]; total += incr; } accumulate_rank[ind] = total; bsp_sync(); bsp_end(); } We need to figure out whether it is possible in our case. otherwise, we should support two methods such as, map and reduce. > Design BSP program code interface > --------------------------------- > > Key: HAMA-257 > URL: https://issues.apache.org/jira/browse/HAMA-257 > Project: Hama > Issue Type: Sub-task > Components: bsp > Affects Versions: 0.2.0 > Reporter: Edward J. Yoon > Assignee: Edward J. Yoon > Fix For: 0.2.0 > > Original Estimate: 24h > Remaining Estimate: 24h > > Designing BSP program code interface -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.