diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2020-05-26 21:38:52 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2020-05-26 21:51:16 -0400 |
commit | b0a383d5bd705e9e38b38e6a3ec00eb53166f1b6 (patch) | |
tree | c6a574719690eb62d5a85d5db72d10d3d047dd16 /dis | |
parent | 4f1aa00f177646b5129304a7d587658aad949946 (diff) |
Code cleanup and bugfixes for infrastructure code
- Remove unused parameters to extra.h
- Use floats to avoid integer overflow when timing long loops
- Only include litmus headers and/or MMDC headers if the appropriate
define is set in extra.h
- Update job parameters to match those used in my PRP experiments
Diffstat (limited to 'dis')
-rwxr-xr-x[-rw-r--r--] | dis/original/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/dis/original/Makefile b/dis/original/Makefile index 98634ac..7ff5e2a 100644..100755 --- a/dis/original/Makefile +++ b/dis/original/Makefile | |||
@@ -1,8 +1,20 @@ | |||
1 | LIBLITMUS ?= /media/speedy/litmus/liblitmus | 1 | LIBLITMUS ?= /media/speedy/litmus/liblitmus |
2 | CC ?= gcc | 2 | CC ?= gcc |
3 | CFLAGS = -pthread -O2 -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include -I/playpen/jbakita/HRTSMT-RTSS19/FinalBenchmarkSetup/baseline/source | 3 | CFLAGS = -pthread -O2 -g -I../../baseline/source |
4 | LDFLAGS = -lrt -lm -L${LIBLITMUS} -llitmus | 4 | LDFLAGS = -lrt -lm |
5 | COMMON = /playpen/jbakita/HRTSMT-RTSS19/FinalBenchmarkSetup/baseline/source/extra.h /media/speedy/litmus/tools/mmdc/mmdc.c | 5 | COMMON = ../../baseline/source/extra.h |
6 | |||
7 | # Handle cases where we're also profiling with the MMDC on the i.MX6Q | ||
8 | ifneq ($(shell grep "define MMDC 1" ../../baseline/source/extra.h),) | ||
9 | »···COMMON += /media/speedy/litmus/tools/mmdc/mmdc.c | ||
10 | endif | ||
11 | |||
12 | # Include all the LITMUS^RT headers if we're using it | ||
13 | ifneq ($(shell grep "define LITMUS 1" ../../baseline/source/extra.h),) | ||
14 | CFLAGS += -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include | ||
15 | LDFLAGS += -L${LIBLITMUS} -llitmus | ||
16 | endif | ||
17 | |||
6 | 18 | ||
7 | all: field matrix neighborhood pointer transitive update | 19 | all: field matrix neighborhood pointer transitive update |
8 | 20 | ||