view amdhal.pl @ 1:77658ee63839 kono r1

Papaer released.
author kono
date Thu, 06 Mar 2008 19:49:25 +0900
parents 685b35adf419
children
line wrap: on
line source

#!/usr/bin/perl
#    並列効果(α)= 1 / (( 1 - p) + p / Np)
#      p  : 並列化率(0〜1.0)
#      Np : プロセッサ数

for($p = 0.5; $p<1;$p+=0.05) {
    print  "$p ",1/((1-$p)+ $p/6),"\n";
}