Marc Kupietz | d6f9c71 | 2016-03-16 11:50:56 +0100 | [diff] [blame^] | 1 | CC = gcc |
| 2 | #Using -Ofast instead of -O3 might result in faster code, but is supported only by newer GCC versions |
| 3 | CFLAGS = -lm -pthread -O3 -march=k8 -mtune=k8 -Wall -funroll-loops |
| 4 | #CFLAGS = -m64 -march=k8 -mtune=k8 -lm -pthread -O3 -Wall -funroll-loops |
| 5 | |
| 6 | |
| 7 | all: word2vec cngram2vec weightedWord2vec wordless2vec word2phrase distance word-analogy compute-accuracy distance_txt distance_fast kmeans_txt |
| 8 | |
| 9 | word2vec : word2vecExt.c |
| 10 | $(CC) word2vecExt.c -o word2vec $(CFLAGS) |
| 11 | weightedWord2vec : weightedWord2vec.c |
| 12 | $(CC) weightedWord2vec.c -o weightedWord2vec $(CFLAGS) |
| 13 | cngram2vec : cngram2vec.c |
| 14 | $(CC) cngram2vec.c -o cngram2vec $(CFLAGS) |
| 15 | wordless2vec : wordless2vec.c |
| 16 | $(CC) wordless2vec.c -o wordless2vec $(CFLAGS) |
| 17 | word2phrase : word2phrase.c |
| 18 | $(CC) word2phrase.c -o word2phrase $(CFLAGS) |
| 19 | distance : distance.c |
| 20 | $(CC) distance.c -o distance $(CFLAGS) |
| 21 | distance_txt : distance_txt.c |
| 22 | $(CC) distance_txt.c -o distance_txt $(CFLAGS) |
| 23 | distance_fast : distance_fast.c |
| 24 | $(CC) distance_fast.c -o distance_fast $(CFLAGS) |
| 25 | kmeans_txt : kmeans_txt.c |
| 26 | $(CC) kmeans_txt.c -o kmeans_txt $(CFLAGS) |
| 27 | word-analogy : word-analogy.c |
| 28 | $(CC) word-analogy.c -o word-analogy $(CFLAGS) |
| 29 | compute-accuracy : compute-accuracy.c |
| 30 | $(CC) compute-accuracy.c -o compute-accuracy $(CFLAGS) |
| 31 | clean: |
| 32 | rm -rf word2vec weightedWord2vec cngram2vec wiord2phrase distance word-analogy compute-accuracy distance_txt kmeans_txt |