diff options
Diffstat (limited to 'SD-VBS')
| -rw-r--r-- | SD-VBS/benchmarks/stitch/src/c/script_stitch.c | 12 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/tracking/src/c/script_tracking.c | 6 | ||||
| -rw-r--r-- | SD-VBS/common/makefiles/Makefile.common | 11 |
3 files changed, 14 insertions, 15 deletions
diff --git a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c index b7611f1..9310048 100644 --- a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c +++ b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c | |||
| @@ -23,6 +23,12 @@ int main(int argc, char* argv[]) | |||
| 23 | cols = Icur->width; | 23 | cols = Icur->width; |
| 24 | 24 | ||
| 25 | for_each_job { | 25 | for_each_job { |
| 26 | iFreeHandle(Icur); | ||
| 27 | fFreeHandle(v); | ||
| 28 | fFreeHandle(interestPnts); | ||
| 29 | fFreeHandle(int1); | ||
| 30 | fFreeHandle(int2); | ||
| 31 | fFreeHandle(Fcur); | ||
| 26 | v = harris(Icur); | 32 | v = harris(Icur); |
| 27 | interestPnts = getANMS(v, 24); | 33 | interestPnts = getANMS(v, 24); |
| 28 | int1 = fMallocHandle(interestPnts->height, 1); | 34 | int1 = fMallocHandle(interestPnts->height, 1); |
| @@ -49,12 +55,6 @@ int main(int argc, char* argv[]) | |||
| 49 | printf("Error in Stitch\n"); | 55 | printf("Error in Stitch\n"); |
| 50 | } | 56 | } |
| 51 | #endif | 57 | #endif |
| 52 | iFreeHandle(Icur); | ||
| 53 | fFreeHandle(v); | ||
| 54 | fFreeHandle(interestPnts); | ||
| 55 | fFreeHandle(int1); | ||
| 56 | fFreeHandle(int2); | ||
| 57 | fFreeHandle(Fcur); | ||
| 58 | WRITE_TO_FILE | 58 | WRITE_TO_FILE |
| 59 | return 0; | 59 | return 0; |
| 60 | } | 60 | } |
diff --git a/SD-VBS/benchmarks/tracking/src/c/script_tracking.c b/SD-VBS/benchmarks/tracking/src/c/script_tracking.c index 2938126..c0af2d7 100644 --- a/SD-VBS/benchmarks/tracking/src/c/script_tracking.c +++ b/SD-VBS/benchmarks/tracking/src/c/script_tracking.c | |||
| @@ -93,9 +93,8 @@ int main(int argc, char* argv[]) | |||
| 93 | 93 | ||
| 94 | I2D* images[counter]; | 94 | I2D* images[counter]; |
| 95 | /** Read input image **/ | 95 | /** Read input image **/ |
| 96 | for(count=1; count<=counter; count++) | 96 | for(count=1; count<=counter; count++){ |
| 97 | { | 97 | /** Read Image **/ |
| 98 | /** Read image **/ | ||
| 99 | scanf("%s", im1); | 98 | scanf("%s", im1); |
| 100 | images[count - 1] = readImage(im1); | 99 | images[count - 1] = readImage(im1); |
| 101 | if(count == 1) Ic = readImage(im1); | 100 | if(count == 1) Ic = readImage(im1); |
| @@ -227,7 +226,6 @@ int main(int argc, char* argv[]) | |||
| 227 | fFreeHandle(newpoints); | 226 | fFreeHandle(newpoints); |
| 228 | } | 227 | } |
| 229 | } | 228 | } |
| 230 | |||
| 231 | #ifdef CHECK | 229 | #ifdef CHECK |
| 232 | /* Self checking */ | 230 | /* Self checking */ |
| 233 | { | 231 | { |
diff --git a/SD-VBS/common/makefiles/Makefile.common b/SD-VBS/common/makefiles/Makefile.common index 964ece6..ab3a6b4 100644 --- a/SD-VBS/common/makefiles/Makefile.common +++ b/SD-VBS/common/makefiles/Makefile.common | |||
| @@ -18,7 +18,8 @@ endif | |||
| 18 | endif | 18 | endif |
| 19 | 19 | ||
| 20 | CC=gcc | 20 | CC=gcc |
| 21 | override CFLAGS += -DGCC -D$(INPUT) -pthread -I../../../../.. | 21 | LIBEXTRA ?= $(TOP_DIR)/../ |
| 22 | override CFLAGS += -DGCC -D$(INPUT) -pthread -I${LIBEXTRA} | ||
| 22 | COMMON_DIR := $(TOP_DIR)/common/c | 23 | COMMON_DIR := $(TOP_DIR)/common/c |
| 23 | M_COMMON := $(TOP_DIR)/common/matlab | 24 | M_COMMON := $(TOP_DIR)/common/matlab |
| 24 | M_TOOLBOX=$(TOP_DIR)/common/toolbox | 25 | M_TOOLBOX=$(TOP_DIR)/common/toolbox |
| @@ -28,8 +29,8 @@ PRELOAD_TIMES_DIR := $(TOP_DIR)/preload-times/$(BMARK) | |||
| 28 | MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK) | 29 | MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK) |
| 29 | BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK) | 30 | BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK) |
| 30 | TOOL_DIR := $(TOP_DIR)/tools | 31 | TOOL_DIR := $(TOP_DIR)/tools |
| 31 | LIBLITMUS ?= /home/litmus/liblitmus | 32 | LIBLITMUS ?= /playpen/mc2/liblitmus |
| 32 | ifneq ($(shell grep "define LITMUS 1" ../../../../../extra.h),) | 33 | ifneq ($(shell grep "define LITMUS 1" ${TOP_DIR}/../extra.h),) |
| 33 | override CFLAGS += -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include | 34 | override CFLAGS += -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include |
| 34 | override LDFLAGS += -L${LIBLITMUS} -llitmus | 35 | override LDFLAGS += -L${LIBLITMUS} -llitmus |
| 35 | endif | 36 | endif |
| @@ -60,7 +61,7 @@ COMMON_SRC := $(wildcard $(COMMON_DIR)/*.c) | |||
| 60 | 61 | ||
| 61 | EXE = | 62 | EXE = |
| 62 | INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) | 63 | INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) |
| 63 | COMPILE_C = $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -O2 | 64 | COMPILE_C = $(CC) $(CFLAGS) $(INCLUDES) -O2 |
| 64 | #COMPILE_C = $(CC) $(CFLAGS) -DGENERATE_OUTPUT -lm -O2 $(INCLUDES) | 65 | #COMPILE_C = $(CC) $(CFLAGS) -DGENERATE_OUTPUT -lm -O2 $(INCLUDES) |
| 65 | COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES) | 66 | COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES) |
| 66 | COMPILE_PG = $(COMPILE_G) -pg | 67 | COMPILE_PG = $(COMPILE_G) -pg |
| @@ -111,7 +112,7 @@ compile-preload: | |||
| 111 | compile: $(C_SRC) | 112 | compile: $(C_SRC) |
| 112 | @echo | 113 | @echo |
| 113 | @echo -e "Benchmark\t\t- $(BMARK)" | 114 | @echo -e "Benchmark\t\t- $(BMARK)" |
| 114 | @$(COMPILE_C) $(COMMON_SRC) $(C_SRC) -lrt -lm -w -o $(BMARK)$(EXE) | 115 | @$(COMPILE_C) $(COMMON_SRC) $(C_SRC) -lrt -lm $(LDFLAGS) -w -o $(BMARK)$(EXE) |
| 115 | 116 | ||
| 116 | compile-prof: $(C_SRC) | 117 | compile-prof: $(C_SRC) |
| 117 | @echo | 118 | @echo |
