PLASMA  2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
plasma_testing Namespace Reference

Functions

def local_popen

Variables

tuple ncpus_av = os.sysconf("SC_NPROCESSORS_ONLN")
tuple ncpus = int(math.floor(ncpus_av/2))
int sched = 0
int execution = 1
string filename = "testing_results.txt"
tuple f = open(filename, 'w')
tuple dtypes
list letter = dtypes[0]
list name = dtypes[1]
string cmdbase = "%stesting "
tuple test01 = local_popen(f, cmdbase + " GECFI" + " 623 531 123 145 136 134")
tuple test02 = local_popen(f, cmdbase + " GETMI" + " 623 531 123 145")
tuple test0 = local_popen(f, cmdbase + " LANGE" + " 914 510 950")
tuple test1 = local_popen(f, cmdbase + " GEMM" + " 1.0 -2.0 600 500 550 650 625 700")
tuple test2 = local_popen(f, cmdbase + " TRSM" + " -2.0 600 500 650 625")
tuple test3 = local_popen(f, cmdbase + " TRMM" + " -2.0 600 500 650 625")
tuple test4 = local_popen(f, cmdbase + " SYMM" + " 1.0 -2.0 600 500 650 625 700")
tuple test5 = local_popen(f, cmdbase + " SYRK" + " 1.0 -2.0 600 500 650 625")
tuple test101 = local_popen(f, "%stesting " % letter + str(ncpus) + " " + str(sched) + " HEMM" + " 1.0 -2.0 600 500 650 625 600")
tuple test102 = local_popen(f, "%stesting " % letter + str(ncpus) + " " + str(sched) + " HERK" + " 1.0 -2.0 600 500 650 625")
tuple test20 = local_popen(f, cmdbase + " POSV" + " 500 600 25 700")
tuple test21 = local_popen(f, cmdbase + " POTRI" + " 500 600")
tuple test22 = local_popen(f, cmdbase + " GELS" + " 0 800 400 825 25 810")
tuple test23 = local_popen(f, cmdbase + " GELS" + " 1 800 400 825 25 810 4")
tuple test24 = local_popen(f, cmdbase + " GELS" + " 0 400 800 825 25 810")
tuple test25 = local_popen(f, cmdbase + " GELS" + " 1 400 800 825 25 810 4")
tuple test26 = local_popen(f, cmdbase + " GESV" + " 800 825 25 810")
tuple test27 = local_popen(f, cmdbase + " GETRI" + " 800 825")
tuple test28 = local_popen(f, cmdbase + " GESVD" + " 0 825 800 855")
tuple test29 = local_popen(f, cmdbase + " GESVD" + " 0 800 825 810")
tuple test30 = local_popen(f, cmdbase + " HEGV" + " 800 825 810")
tuple test31 = local_popen(f, cmdbase + " HEEV" + " 800 825")
tuple test32 = local_popen(f, cmdbase + " HEGST" + " 800 825 810")
tuple test201 = local_popen(f, cmdbase + " %sGESV" % substr[1] + " 800 825 25 810")
tuple test202 = local_popen(f, cmdbase + " %sUNGESV" % substr[1] + " 800 825 25 810")
tuple test203 = local_popen(f, cmdbase + " %sPOSV" % substr[1] + " 800 825 25 810")

Function Documentation

def plasma_testing.local_popen (   f,
  cmdline 
)

Definition at line 69 of file plasma_testing.py.

69 
70 def local_popen( f, cmdline ):
71  if os.name != 'nt':
72  cmdline="./" + cmdline
73 
74  if execution==0:
75  print cmdline
76  else:
77  p=Popen( cmdline, shell=True, stdout=PIPE, stderr=STDOUT )
78 
79  r=p.poll()
80  while r == None:
81  r=p.poll()
82  pipe=p.stdout
83 
84  if r != 0:
85  print "---- TESTING " + cmdline.split()[3] + "... FAILED(" + str(p.returncode) +") !"
86  for line in pipe.readlines():
87  f.write(str(line))
88  else:
89  found=0
90  for line in pipe.readlines():
91  f.write(str(line))
92  if "TESTING" in line :
93  found = 1
94  print line,
95  if found == 0:
96  print cmdline.split()[0] + " " + cmdline.split()[3] + ": FAILED(Unexpected error)"
97 
98  f.flush();
99  return 0
100 
101 
# If filename cannot be opened, send output to sys.stderr

Variable Documentation

string plasma_testing.cmdbase = "%stesting "

Definition at line 134 of file plasma_testing.py.

tuple plasma_testing.dtypes
Initial value:
1 (
2 ("s", "d", "c", "z"),
3 ("Single", "Double", "Complex", "Double Complex"),
4 )

Definition at line 120 of file plasma_testing.py.

int plasma_testing.execution = 1

Definition at line 44 of file plasma_testing.py.

plasma_testing.f = open(filename, 'w')

Definition at line 104 of file plasma_testing.py.

string plasma_testing.filename = "testing_results.txt"

Definition at line 102 of file plasma_testing.py.

list plasma_testing.letter = dtypes[0]

Definition at line 126 of file plasma_testing.py.

list plasma_testing.name = dtypes[1]

Definition at line 127 of file plasma_testing.py.

plasma_testing.ncpus = int(math.floor(ncpus_av/2))

Definition at line 29 of file plasma_testing.py.

tuple plasma_testing.ncpus_av = os.sysconf("SC_NPROCESSORS_ONLN")

Definition at line 22 of file plasma_testing.py.

int plasma_testing.sched = 0

Definition at line 43 of file plasma_testing.py.

tuple plasma_testing.test0 = local_popen(f, cmdbase + " LANGE" + " 914 510 950")

Definition at line 144 of file plasma_testing.py.

tuple plasma_testing.test01 = local_popen(f, cmdbase + " GECFI" + " 623 531 123 145 136 134")

Definition at line 136 of file plasma_testing.py.

tuple plasma_testing.test02 = local_popen(f, cmdbase + " GETMI" + " 623 531 123 145")

Definition at line 137 of file plasma_testing.py.

tuple plasma_testing.test1 = local_popen(f, cmdbase + " GEMM" + " 1.0 -2.0 600 500 550 650 625 700")

Definition at line 145 of file plasma_testing.py.

tuple plasma_testing.test101 = local_popen(f, "%stesting " % letter + str(ncpus) + " " + str(sched) + " HEMM" + " 1.0 -2.0 600 500 650 625 600")

Definition at line 152 of file plasma_testing.py.

tuple plasma_testing.test102 = local_popen(f, "%stesting " % letter + str(ncpus) + " " + str(sched) + " HERK" + " 1.0 -2.0 600 500 650 625")

Definition at line 153 of file plasma_testing.py.

tuple plasma_testing.test2 = local_popen(f, cmdbase + " TRSM" + " -2.0 600 500 650 625")

Definition at line 146 of file plasma_testing.py.

tuple plasma_testing.test20 = local_popen(f, cmdbase + " POSV" + " 500 600 25 700")

Definition at line 155 of file plasma_testing.py.

tuple plasma_testing.test201 = local_popen(f, cmdbase + " %sGESV" % substr[1] + " 800 825 25 810")

Definition at line 177 of file plasma_testing.py.

tuple plasma_testing.test202 = local_popen(f, cmdbase + " %sUNGESV" % substr[1] + " 800 825 25 810")

Definition at line 178 of file plasma_testing.py.

tuple plasma_testing.test203 = local_popen(f, cmdbase + " %sPOSV" % substr[1] + " 800 825 25 810")

Definition at line 179 of file plasma_testing.py.

tuple plasma_testing.test21 = local_popen(f, cmdbase + " POTRI" + " 500 600")

Definition at line 156 of file plasma_testing.py.

tuple plasma_testing.test22 = local_popen(f, cmdbase + " GELS" + " 0 800 400 825 25 810")

Definition at line 157 of file plasma_testing.py.

tuple plasma_testing.test23 = local_popen(f, cmdbase + " GELS" + " 1 800 400 825 25 810 4")

Definition at line 158 of file plasma_testing.py.

tuple plasma_testing.test24 = local_popen(f, cmdbase + " GELS" + " 0 400 800 825 25 810")

Definition at line 159 of file plasma_testing.py.

tuple plasma_testing.test25 = local_popen(f, cmdbase + " GELS" + " 1 400 800 825 25 810 4")

Definition at line 160 of file plasma_testing.py.

tuple plasma_testing.test26 = local_popen(f, cmdbase + " GESV" + " 800 825 25 810")

Definition at line 161 of file plasma_testing.py.

tuple plasma_testing.test27 = local_popen(f, cmdbase + " GETRI" + " 800 825")

Definition at line 162 of file plasma_testing.py.

tuple plasma_testing.test28 = local_popen(f, cmdbase + " GESVD" + " 0 825 800 855")

Definition at line 163 of file plasma_testing.py.

tuple plasma_testing.test29 = local_popen(f, cmdbase + " GESVD" + " 0 800 825 810")

Definition at line 164 of file plasma_testing.py.

tuple plasma_testing.test3 = local_popen(f, cmdbase + " TRMM" + " -2.0 600 500 650 625")

Definition at line 147 of file plasma_testing.py.

tuple plasma_testing.test30 = local_popen(f, cmdbase + " HEGV" + " 800 825 810")

Definition at line 165 of file plasma_testing.py.

tuple plasma_testing.test31 = local_popen(f, cmdbase + " HEEV" + " 800 825")

Definition at line 166 of file plasma_testing.py.

tuple plasma_testing.test32 = local_popen(f, cmdbase + " HEGST" + " 800 825 810")

Definition at line 167 of file plasma_testing.py.

tuple plasma_testing.test4 = local_popen(f, cmdbase + " SYMM" + " 1.0 -2.0 600 500 650 625 700")

Definition at line 148 of file plasma_testing.py.

tuple plasma_testing.test5 = local_popen(f, cmdbase + " SYRK" + " 1.0 -2.0 600 500 650 625")

Definition at line 149 of file plasma_testing.py.