diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2020-10-22 07:50:12 -0500 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2020-10-22 07:50:12 -0500 |
commit | 6ff784158f61a082fe6d4332c743a066ef007674 (patch) | |
tree | 9148a10ce43358d697d8a8f80bd7cdef7b91e06d /P2/solutionexe | |
parent | get rid of & (diff) | |
download | csci4061-6ff784158f61a082fe6d4332c743a066ef007674.tar csci4061-6ff784158f61a082fe6d4332c743a066ef007674.tar.gz csci4061-6ff784158f61a082fe6d4332c743a066ef007674.tar.bz2 csci4061-6ff784158f61a082fe6d4332c743a066ef007674.tar.lz csci4061-6ff784158f61a082fe6d4332c743a066ef007674.tar.xz csci4061-6ff784158f61a082fe6d4332c743a066ef007674.tar.zst csci4061-6ff784158f61a082fe6d4332c743a066ef007674.zip |
Add Project 2 Files
Diffstat (limited to 'P2/solutionexe')
-rw-r--r-- | P2/solutionexe/Makefile | 57 | ||||
-rw-r--r-- | P2/solutionexe/mapper | bin | 0 -> 26444 bytes | |||
-rw-r--r-- | P2/solutionexe/mapreduce | bin | 0 -> 24940 bytes | |||
-rw-r--r-- | P2/solutionexe/reducer | bin | 0 -> 25676 bytes |
4 files changed, 57 insertions, 0 deletions
diff --git a/P2/solutionexe/Makefile b/P2/solutionexe/Makefile new file mode 100644 index 0000000..231a15e --- /dev/null +++ b/P2/solutionexe/Makefile @@ -0,0 +1,57 @@ +CC=gcc +CFLAGS=-g + +SRCDIR=src +INCLDIR=include +LIBDIR=lib + +mapreduce: $(SRCDIR)/mapreduce.c $(LIBDIR)/utils.o mapper reducer + $(CC) $(CFLAGS) -I$(INCLDIR) $(LIBDIR)/utils.o $(SRCDIR)/mapreduce.c -o mapreduce + +mapper: $(SRCDIR)/mapper.c $(LIBDIR)/utils.o + $(CC) $(CFLAGS) -I$(INCLDIR) $(LIBDIR)/utils.o $(SRCDIR)/mapper.c -o mapper + +reducer: $(SRCDIR)/reducer.c $(LIBDIR)/utils.o + $(CC) $(CFLAGS) -I$(INCLDIR) $(LIBDIR)/utils.o $(SRCDIR)/reducer.c -o reducer + +$(LIBDIR)/utils.o: $(LIBDIR)/utils.c + $(CC) $(CFLAGS) -I$(INCLDIR) -c $(LIBDIR)/utils.c -o $(LIBDIR)/utils.o + +.PHONY: run clean t1 t2 t3 + +#500KB +t1: +# make -i clean +# make + ./mapreduce 5 2 test/T1/F1.txt + +#44KB +t2: +# make -i clean +# make + ./mapreduce 5 2 test/T2/F2.txt + +#0KB +t3: +# make -i clean +# make + ./mapreduce 5 2 test/T3/F3.txt + +# m >= r + +# m=1 r=1 (min case) +t4: +# make -i clean +# make + ./mapreduce 1 1 test/T1/F1.txt + +# m=32 r=26 (max case) +t5: +# make -i clean +# make + ./mapreduce 32 26 test/T1/F1.txt + + +clean: + rm lib/utils.o mapreduce mapper reducer + rm -rf output
\ No newline at end of file diff --git a/P2/solutionexe/mapper b/P2/solutionexe/mapper Binary files differnew file mode 100644 index 0000000..15abd74 --- /dev/null +++ b/P2/solutionexe/mapper diff --git a/P2/solutionexe/mapreduce b/P2/solutionexe/mapreduce Binary files differnew file mode 100644 index 0000000..28be9a0 --- /dev/null +++ b/P2/solutionexe/mapreduce diff --git a/P2/solutionexe/reducer b/P2/solutionexe/reducer Binary files differnew file mode 100644 index 0000000..6d6ccd8 --- /dev/null +++ b/P2/solutionexe/reducer |