diff --git a/makefile b/makefile index 3aafc50d6aac34bad5804f90f7760bd7096c70c0..595fb14fc858c7d2de1f0ee97480c3f579206a97 100644 --- a/makefile +++ b/makefile @@ -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) diff --git a/valgrind_supression.txt b/valgrind_supression.txt new file mode 100644 index 0000000000000000000000000000000000000000..e97463df47dceba7514a26e1f3d07c6e2587f568 --- /dev/null +++ b/valgrind_supression.txt @@ -0,0 +1,12 @@ +{ + ignore_unversioned_libs + Memcheck:Leak + ... + obj:*/lib*/lib*.so +} +{ + ignore_versioned_libs + Memcheck:Leak + ... + obj:*/lib*/lib*.so.* +}