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