<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://www.multicorebsp.com/forum/extern.php?action=feed&amp;fid=2&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[The MulticoreBSP Forums / General]]></title>
		<link>http://www.multicorebsp.com/forum/index.php</link>
		<description><![CDATA[The most recent topics at The MulticoreBSP Forums.]]></description>
		<lastBuildDate>Sat, 04 May 2013 17:01:37 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[multicoreBSP Java version]]></title>
			<link>http://www.multicorebsp.com/forum/viewtopic.php?id=24&amp;action=new</link>
			<description><![CDATA[<p>Hi sikanderhayat,</p><p>I think the confusion here is there cannot be just two vectors in a (BSP) SPMD run; each single program has its own two local vectors. With p processors, there will thus be 2p separate vectors.</p><p>Suppose x and y are the *global* vectors, and x_s and y_s the *local* vectors at process s. Note again that x and y do not exist anywhere. Then x should be distributed so that the union of the p subvectors x_s should yield x; and similarly for y_s and y. In other words, we need a <strong>partitioning</strong> of the global vectors x and y. Again, this still happens on the design table, not on the implementation-level. We now first design the algorithm.</p><p>To compute an inner product we can first compute the local inner product, then communicate the partial results, and then combine those partial results. Following the BSP paradigm, we want no communication during the computation of the local inner product; hence, the distributions (the way of partitioning) of x and y must be equal. The communication step is an all-to-all communication of a single element, and the last computation step is indeed also completely local as it just accumulates all received elements into one.<br />The cost of the first computation step is given by the local lengths of x_s and y_s (which are equal, since the distribution is equal). For load-balance, setting this length to n/p for all local vectors, with n the size of the global x and y, is optimal. Note that the actual partitioning scheme thus actually does not matter; as long as x is distributed as y is, and as long as all local vectors are of equal size. This concludes the design. We now can go on with implementation. </p><p>Each SPMD section must <strong>initialise</strong> local vectors of size n/p. This means allocating room for x_s and y_s, and initialising the values of the elements therein according to the global distribution that was chosen. Again, there are no global vectors x and y; we only initialise local vectors, from scratch. We then implement the algorithm as described above, and we are done. (It is quite natural for BSP implementations to just be literal translations of a BSP design.)</p><p>If you had the global vectors x and y available, then some part of the code is not in SPMD style. You can still force MulticoreBSP to run with a block-distribution of those vectors, but then you have to override the SPMD paradigm by using (or abusing) the available shared-memory. In terms of performance you will then become suboptimal in terms of data-locality, which will lead to big issues on architectures where memory access is non-uniform (NUMA architectures).</p>]]></description>
			<author><![CDATA[dummy@example.com (Albert-Jan Yzelman)]]></author>
			<pubDate>Sat, 04 May 2013 17:01:37 +0000</pubDate>
			<guid>http://www.multicorebsp.com/forum/viewtopic.php?id=24&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[MulticoreBSP Configration]]></title>
			<link>http://www.multicorebsp.com/forum/viewtopic.php?id=20&amp;action=new</link>
			<description><![CDATA[<p>Thanks for the reply, I configure MulticoreBSP library in eclipse and through terminal as per your post, thanks again</p>]]></description>
			<author><![CDATA[dummy@example.com (sikanderhayat)]]></author>
			<pubDate>Mon, 19 Nov 2012 12:29:29 +0000</pubDate>
			<guid>http://www.multicorebsp.com/forum/viewtopic.php?id=20&amp;action=new</guid>
		</item>
	</channel>
</rss>
