<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,
<div><br>
</div>
<div>I try to test the efficiency of parallelization of my current installation of petsc by running the following command:</div>
<div><br>
</div>
<div>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
make PETSC_DIR=/Users/Paul/Documents/software/petsc-install PETSC_ARCH= streams NPMAX=4</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<span style="font-family: Tahoma; font-size: 13px;">I get the following results:</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<span style="font-family: Tahoma; font-size: 13px;"><br>
</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Number of MPI processes 1</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 0 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Function Rate (MB/s) </p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Copy: 13354.1380</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Scale: 13012.7268</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Add: 14725.4078</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Triad: 14822.7110</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Number of MPI processes 2</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 0 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 1 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Function Rate (MB/s) </p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Copy: 14135.6610</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Scale: 14071.0462</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Add: 15598.0208</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Triad: 15717.5890</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Number of MPI processes 3</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 0 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 1 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 2 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Function Rate (MB/s) </p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Copy: 13755.8241</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Scale: 13704.7662</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Add: 15312.1487</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Triad: 15319.4803</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Number of MPI processes 4</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 0 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 1 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 2 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Process 3 Huis-MacBook-Pro.local</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Function Rate (MB/s) </p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Copy: 13769.1621</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Scale: 13708.0972</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Add: 15103.1783</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Triad: 15133.8786</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
------------------------------------------------</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
np speedup</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
1 1.0</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
2 1.06</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
3 1.03</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
4 1.02</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Estimation of possible speedup of MPI programs based on Streams benchmark.</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
It appears you have 1 node(s)</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="font-family: Tahoma; font-size: 13px;">Does this result basically says that my MacBook only have one node? However, I know my computer has 4 cores, as I type </span><span style="font-family: Menlo; font-size: x-small; line-height: 17.804800033569336px; background-color: rgb(255, 255, 255);">sysctl
-n hw.ncpu </span><span style="background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: 17.804800033569336px;">in bash, it gives me 4. Wh</span></span><span style="font-size: 14px; line-height: 17.804800033569336px; background-color: rgb(255, 255, 255);">at
does it really mean? By the way, here is my configuration for this installation: </span></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="background-color: rgb(255, 255, 255);"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size: 14px; line-height: 17.804800033569336px;"><br>
</span></font></span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
./configure --download-fblaslapack --download-suitesparse --download-superlu_dist --download-parmetis --download-metis --download-hypre --prefix=/Users/Paul/Documents/software/petsc-install --with-mpi-dir=/Users/Paul/Documents/software/mpich-3.1.3-install</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px; background-color: rgb(255, 255, 255);"><br>
</span></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: 17.804800033569336px;">Is there anything in this configuration command that causes trouble? </span></span></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: 17.804800033569336px;"><br>
</span></span></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: 17.804800033569336px;">Best,</span></span></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="background-color: rgb(255, 255, 255);"><span style="font-size: 14px; line-height: 17.804800033569336px;">Hui</span></span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px;"><span style="font-size: 13px;"><br>
</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<span style="font-family: Tahoma; font-size: 13px;"><br>
</span></p>
</div>
</div>
</body>
</html>