Skip to content
Snippets Groups Projects
Commit 796d8c3a authored by Nicola Vigano's avatar Nicola Vigano
Browse files

dct_launcher.py: fixed valgrind support

parent 07d98e78
No related branches found
No related tags found
No related merge requests found
......@@ -78,16 +78,20 @@ class DCTMatlabInvocation(object):
env_var = os.environ["LD_PRELOAD"]
os.environ["LD_PRELOAD"] = ":".join([lib, env_var])
if debugger == "valgrind":
os.environ["MALLOC_CHECK_"] = "1"
cmd = []
if profiler == "cuda":
cmd = cmd + ["/usr/local/cuda/bin/nvprof", "-f", "-o", "profile_cuda_matlab_script"] #, "--analysis-metrics"
if debugger == "valgrind":
cmd = cmd + ["valgrind", "--log-file=memcheck_matlab_script"] #, "--leak-check=yes"
cmd = cmd + [os.path.join(self.conf.getMatlabPath(), "bin", "matlab")]
cmd = cmd + self.conf.getMatlabOptions()
cmd = cmd + self.args
if debugger == "valgrind":
cmd = cmd + ["-Dvalgrind --error-limit=no --log-file=memcheck_matlab_script.log"] # --leak-check=yes
cmd.append("-r")
ignore_id19 = self.conf.getIgnoreID19()
......
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