Skip to content
Snippets Groups Projects
Commit bfd754e2 authored by Brandon Rodriguez's avatar Brandon Rodriguez
Browse files

Add valgrind makefile command

I'm not sure if it's very helpful with MPI, but at least it's there
parent ba56fc79
Branches
No related merge requests found
......@@ -29,3 +29,9 @@ all: $(TARGET)
# Compile target if dependencies update. Then run.
run: $(TARGET)
@$(EXE) -n $(CORES) --oversubscribe ./$(TARGET) $(ARGS)
# Compile target if dependencies update. Then run.
valgrind: $(TARGET)
@rm ./logs/*
@$(EXE) -n $(CORES) --oversubscribe valgrind --leak-check=full --suppressions=valgrind_supression.txt --log-file=./logs/vg.%p ./$(TARGET) $(ARGS)
{
ignore_unversioned_libs
Memcheck:Leak
...
obj:*/lib*/lib*.so
}
{
ignore_versioned_libs
Memcheck:Leak
...
obj:*/lib*/lib*.so.*
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment