28 (
"ldlt",
"-ldlt_rdt",
"ldlt.rdt",
"LDLt Decomposition: matrix->Decompose_LDLt(). Decompose matrix using LDLt Decomposition.")
33 def long_description():
34 desc =
"Executes the skyline tool collecting statistics for the following steps:" 35 for rdtarg
in rdtfiles_l :
36 desc = desc +
'\n\t' + rdtarg[0] +
' (' + rdtarg[1] +
' ' + rdtarg [2] +
') : ' + rdtarg[3]
42 import shlex, subprocess
49 builddir=
"@PERFTEST_BASE_DIR@" 50 datadir=
"@PERFTEST_SMALL_DATA_DIR@" 53 sys.stderr.write(
'ERROR (test.py): '+message+
'\n')
59 if not os.path.isdir(builddir) :
60 error(builddir+
' is an invalid build directory.', 5)
62 rundir = os.path.join(builddir,
'scripts',
'skyline_tst06')
63 if not os.path.isdir(rundir) :
64 error(rundir+
' is an invalid run directory.', 1)
65 if not os.path.isdir(builddir) :
66 error(builddir+
' is an invalid build directory.', 1)
68 executable=os.path.join(builddir,
"progs",
"skyline",
"skyline-perf")
69 if not os.path.isfile(executable) :
70 error(executable+
' is an invalid executable file name.', 1)
72 inputfn = os.path.join(datadir,
"substruct",
"inputs",
"cube1.txt")
73 if not os.path.isfile(inputfn) :
74 error(inputfn+
' is an invalid input file name.', 1)
76 arguments =
' -if ' + inputfn
77 arguments = arguments +
' -porder 4' 78 for rdtarg
in rdtfiles_l :
79 arguments = arguments +
' ' + rdtarg[1] +
' ' + rdtarg[2]
81 return rundir, executable+arguments
85 limits = {
"cpu" : (resource.RLIMIT_CPU, 1000,
"Max CPU user time in seconds (not wall clock time)"),
96 print "Setting resource limit in child" 97 for k, v
in limits.iteritems() :
98 resource.setrlimit(v[0], (v[1],v[1]))
104 for f
in rdtfiles_l :
106 rdt_fn = os.path.join(rundir,f[2])
108 results[rdt_id] = (rdt_fn, rdt_dsc)
116 args = shlex.split(cmd)
119 for i
in range(ntimes) :
120 p = subprocess.Popen(args, preexec_fn=setlimits, stdout=sout, stderr=serr, cwd=rundir)
122 if (p.returncode != 0) :
123 return p.returncode, {}
def sumarize_rdt_files(rundir)
def error(message, status)