Skip to content
Snippets Groups Projects
Commit c5036264 authored by Nicola VIGANO's avatar Nicola VIGANO
Browse files

Added oprofile profiling support


Signed-off-by: default avatarNicola VIGANO <N.R.Vigano@cwi.nl>
parent 4d1397a6
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ class DCTLauncher(object):
print(" # python %s matlab_script [commands]" % os.path.basename(__file__))
print(" Options:")
print(" -h | --help : to show this help")
print(" --profile : to specify the type of profiling. Options: 'cuda'")
print(" --profile : to specify the type of profiling. Options: 'cuda', 'oprofile'")
print(" --debug : to specify the type of profiling. Options: 'valgrind'")
print(" --script : to specify the script/commands to be launched")
else:
......
......@@ -80,6 +80,8 @@ class DCTMatlabInvocation(object):
cmd = []
if profiler == "cuda":
cmd = cmd + ["/usr/local/cuda/bin/nvprof", "-f", "-o", "profile_cuda_matlab_script"] #, "--analysis-metrics"
elif profiler == "oprofile":
cmd = cmd + ["operf"]
cmd = cmd + [os.path.join(self.conf.getMatlabPath(), "bin", "matlab")]
cmd = cmd + self.conf.getMatlabOptions()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment