Download 02222: Distributed Systems Lab9: Grid Computations

Transcript
5
2 IMPLEMENTATION
S@TVUQWYX
<
== ! " %)(
# * + '
,
#$&% " "
' MN
* ( - : R # 3 O 9 J
( ? -
ZD
'# 18
9: ;# 11
$
9 -7
# =( -=7
3 9 1J
Z2
K
8= 3 PC5
Q7
3A 3* Z2
(5 -J
-K2 >6+ +=K
* (@( -7
,&%$ B( 34$ B( K
# $#+ %= # = 3
# 7
% " - &%?CD%/$ B( EF $ B( 7
K
( -./ # 0211 # 34(5
67
3 9 1J
. # * (L 3 "9
K
- : >6? +
* (@( : =- 7
! 1 3 3 1+
Q7 : R 3 -=7
($#+ ?%G* + '
&% , H2($#+ * I '
,7
Z2
! " >=18
9 -
# %G ( * ( -
# ( 3R(
67
1 ".2 # ! #1 3 3
A "7
Figure 1: Application Flow
2.1
Producing the code
The calculations for this application require the use of a package which can handle very
large integers. The package recommended for this purpose in connection with the software
discussed below is GMP, available from:
http://www.swox.com/gmp
You should use version 4.1.2 (or later) of the package. The most recent version is currently
4.1.4. If you are working in the E-databar, you will find that GMP is already installed.
The remainder of the code is available as two compressed tar-balls which can be retrieved from:
http://www.imm.dtu.dk/~robin/02222/grid/