Commit 2d6efdc7 authored by Ho Yin Chan's avatar Ho Yin Chan
Browse files

trunk:tools/rnnlm-hs-0.1b improve compilation options

git-svn-id: 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 41865d64
CC = gcc
#The -Ofast might not work with older versions of gcc; in that case, use -O2
CFLAGS = `$(CC) -dumpversion | awk '{if(NR==1 && $$1>"4.6") print "-lm -pthread -Ofast -march=native -Wall -funroll-loops -Wno-unused-result -std=c99 -g"; else print "-lm -pthread -march=native -Wall -funroll-loops -std=c99 -g";}'`
CFLAGS = `$(CC) -dumpversion | awk '{if(NR==1 && $$1>"4.6") print "-lm -pthread -Ofast -march=native -Wall -funroll-loops -Wno-unused-result -std=c99 -g"; else print "-lm -pthread -O2 -march=native -Wall -funroll-loops -std=c99 -g";}'`
all: rnnlm
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment