commit d2290216250c5ff773edb3ccec299171171db77d
parent a13a0424925846d930451263e72b37ff6305d692
Author: NunoSempere <nuno.sempere@protonmail.com>
Date: Sat, 3 Jun 2023 01:37:42 -0600
tweak perf makefile command
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/C/makefile b/C/makefile
@@ -83,6 +83,7 @@ time-linux-simple:
profile-linux:
echo "Requires perf, which depends on the kernel, and might be in linux-tools package or similar"
+ echo "Must be run as sudo"
$(CC) $(SRC) $(OPENMP) $(MATH) -o $(OUTPUT)
# ./$(OUTPUT)
# gprof:
@@ -91,7 +92,7 @@ profile-linux:
# vim analysis.txt
# rm analysis.txt
# perf:
- perf record $(OUTPUT)
+ OMP_NUM_THREADS=16 sudo perf record $(OUTPUT)
perf report
rm perf.data
diff --git a/C/out/samples b/C/out/samples
Binary files differ.