Created
February 15, 2014 15:18
-
-
Save tpeng/9020592 to your computer and use it in GitHub Desktop.
patch to allow rnnlm build on macos
This file contains hidden or 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
#CC = x86_64-linux-g++-4.6 | |
CC = llvm-gcc | |
WEIGHTTYPE = float | |
CFLAGS = -D WEIGHTTYPE=$(WEIGHTTYPE) -lm -O2 -Wall -funroll-loops -ffast-math -lstdc++ | |
#CFLAGS = -D WEIGHTTYPE=$(WEIGHTTYPE) -lm -O2 -Wall -funroll-loops -ffast-math | |
#CFLAGS = -lm -O2 -Wall | |
all: rnnlmlib.o rnnlm | |
rnnlmlib.o : rnnlmlib.cpp | |
$(CC) $(CFLAGS) $(OPT_DEF) -c rnnlmlib.cpp | |
rnnlm : rnnlm.cpp | |
$(CC) $(CFLAGS) $(OPT_DEF) rnnlm.cpp rnnlmlib.o -o rnnlm | |
clean: | |
rm -rf *.o rnnlm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment