-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2217764
commit fbea9de
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CC = gcc | ||
#The -Ofast might not work with older versions of gcc; in that case, use -O2 | ||
CFLAGS = -lm -pthread -Ofast -march=native -Wall -funroll-loops -Wno-unused-result | ||
|
||
all: word2vec word2phrase distance word-analogy compute-accuracy | ||
|
||
word2vec : word2vec.c | ||
$(CC) word2vec.c -o word2vec $(CFLAGS) | ||
word2phrase : word2phrase.c | ||
$(CC) word2phrase.c -o word2phrase $(CFLAGS) | ||
distance : distance.c | ||
$(CC) distance.c -o distance $(CFLAGS) | ||
word-analogy : word-analogy.c | ||
$(CC) word-analogy.c -o word-analogy $(CFLAGS) | ||
compute-accuracy : compute-accuracy.c | ||
$(CC) compute-accuracy.c -o compute-accuracy $(CFLAGS) | ||
chmod +x *.sh | ||
|
||
clean: | ||
rm -rf word2vec word2phrase distance word-analogy compute-accuracy |