Commits

Anonymous committed 3bf5b59

Makefile: added rnn_*-o64-O{2,3,fast} for target

Comments (0)

Files changed (2)

+syntax: glob
+rnn_*O2
+rnn_*O3
+rnn_*Ofast
-ALL = \
-	rnn_ca1d-gcc-O2 rnn_ca1d-gcc-O3 rnn_ca1d-icc-O2 rnn_ca1d-icc-O3 \
-	rnn_ca2d-gcc-O2 rnn_ca2d-gcc-O3 rnn_ca2d-icc-O2 rnn_ca2d-icc-O3 \
-	rnn_opt0-gcc-O2 rnn_opt0-gcc-O3 rnn_opt0-icc-O2 rnn_opt0-icc-O3 \
-	rnn_opt1-gcc-O2 rnn_opt1-gcc-O3 rnn_opt1-icc-O2 rnn_opt1-icc-O3 \
-	rnn_opt2-gcc-O2 rnn_opt2-gcc-O3 rnn_opt2-icc-O2 rnn_opt2-icc-O3 \
-	rnn_opt3-gcc-O2 rnn_opt3-gcc-O3 rnn_opt3-icc-O2 rnn_opt3-icc-O3 \
-	rnn_opt4-gcc-O2 rnn_opt4-gcc-O3 rnn_opt4-icc-O2 rnn_opt4-icc-O3 \
-
-#ALL = \
+ALL_GCC = \
 	rnn_ca1d-gcc-O2 rnn_ca1d-gcc-O3 \
 	rnn_ca2d-gcc-O2 rnn_ca2d-gcc-O3 \
+	rnn_opt0-gcc-O2 rnn_opt0-gcc-O3 \
+	rnn_opt1-gcc-O2 rnn_opt1-gcc-O3 \
+	rnn_opt2-gcc-O2 rnn_opt2-gcc-O3 \
+	rnn_opt3-gcc-O2 rnn_opt3-gcc-O3 \
+	rnn_opt4-gcc-O2 rnn_opt4-gcc-O3 \
+
+ALL_ICC = \
+	rnn_ca1d-icc-O2 rnn_ca1d-icc-O3 \
+	rnn_ca2d-icc-O2 rnn_ca2d-icc-O3 \
+	rnn_opt0-icc-O2 rnn_opt0-icc-O3 \
+	rnn_opt1-icc-O2 rnn_opt1-icc-O3 \
+	rnn_opt2-icc-O2 rnn_opt2-icc-O3 \
+	rnn_opt3-icc-O2 rnn_opt3-icc-O3 \
+	rnn_opt4-icc-O2 rnn_opt4-icc-O3 \
+
+ALL_O64 = \
+	rnn_ca1d-o64-O2 rnn_ca1d-o64-O3 rnn_ca1d-o64-Ofast \
+	rnn_ca2d-o64-O2 rnn_ca2d-o64-O3 rnn_ca2d-o64-Ofast \
+	rnn_opt0-o64-O2 rnn_opt0-o64-O3 rnn_opt0-o64-Ofast \
+	rnn_opt1-o64-O2 rnn_opt1-o64-O3 rnn_opt1-o64-Ofast \
+	rnn_opt2-o64-O2 rnn_opt2-o64-O3 rnn_opt2-o64-Ofast \
+	rnn_opt3-o64-O2 rnn_opt3-o64-O3 rnn_opt3-o64-Ofast \
+	rnn_opt4-o64-O2 rnn_opt4-o64-O3 rnn_opt4-o64-Ofast \
+
+ALL=${ALL_GCC} ${ALL_ICC} ${ALL_O64}
+
 
 .PHONY: clean all runtest
 
 	icc -vec-report1 -O2 $< -o $@
 rnn_ca1d-icc-O3: rnn_ca1d.c
 	icc -vec-report1 -O3 $< -o $@
+rnn_ca1d-o64-O2: rnn_ca1d.c
+	opencc -lm -O2 $< -o $@
+rnn_ca1d-o64-O3: rnn_ca1d.c
+	opencc -lm -O3 $< -o $@
+rnn_ca1d-o64-Ofast: rnn_ca1d.c
+	opencc -lm -Ofast $< -o $@
 
 rnn_ca2d-gcc-O2: rnn_ca2d.c
 	gcc -lm -O2 $< -o $@
 	icc -vec-report1 -O2 $< -o $@
 rnn_ca2d-icc-O3: rnn_ca2d.c
 	icc -vec-report1 -O3 $< -o $@
+rnn_ca2d-o64-O2: rnn_ca2d.c
+	opencc -lm -O2 $< -o $@
+rnn_ca2d-o64-O3: rnn_ca2d.c
+	opencc -lm -O3 $< -o $@
+rnn_ca2d-o64-Ofast: rnn_ca2d.c
+	opencc -lm -Ofast $< -o $@
 
 rnn_opt0-gcc-O2: rnn_opt0.c
 	gcc -lm -O2 $< -o $@
 	icc -vec-report1 -O2 $< -o $@
 rnn_opt0-icc-O3: rnn_opt0.c
 	icc -vec-report1 -O3 $< -o $@
+rnn_opt0-o64-O2: rnn_opt0.c
+	opencc -lm -O2 $< -o $@
+rnn_opt0-o64-O3: rnn_opt0.c
+	opencc -lm -O3 $< -o $@
+rnn_opt0-o64-Ofast: rnn_opt0.c
+	opencc -lm -Ofast $< -o $@
 
 rnn_opt1-gcc-O2: rnn_opt1.c
 	gcc -lm -O2 $< -o $@
 	icc -vec-report1 -O2 $< -o $@
 rnn_opt1-icc-O3: rnn_opt1.c
 	icc -vec-report1 -O3 $< -o $@
+rnn_opt1-o64-O2: rnn_opt1.c
+	opencc -lm -O2 $< -o $@
+rnn_opt1-o64-O3: rnn_opt1.c
+	opencc -lm -O3 $< -o $@
+rnn_opt1-o64-Ofast: rnn_opt1.c
+	opencc -lm -Ofast $< -o $@
 
 rnn_opt2-gcc-O2: rnn_opt2.c
 	gcc -lm -O2 $< -o $@
 	icc -vec-report1 -O2 $< -o $@
 rnn_opt2-icc-O3: rnn_opt2.c
 	icc -vec-report1 -O3 $< -o $@
+rnn_opt2-o64-O2: rnn_opt2.c
+	opencc -lm -O2 $< -o $@
+rnn_opt2-o64-O3: rnn_opt2.c
+	opencc -lm -O3 $< -o $@
+rnn_opt2-o64-Ofast: rnn_opt2.c
+	opencc -lm -Ofast $< -o $@
 
 rnn_opt3-gcc-O2: rnn_opt3.c
 	gcc -lm -O2 -std=c99 $< -o $@
 	icc -vec-report1 -O2 -restrict $< -o $@
 rnn_opt3-icc-O3: rnn_opt3.c
 	icc -vec-report1 -O3 -restrict $< -o $@
+rnn_opt3-o64-O2: rnn_opt3.c
+	opencc -lm -std=c99 -O2 $< -o $@
+rnn_opt3-o64-O3: rnn_opt3.c
+	opencc -lm -std=c99 -O3 $< -o $@
+rnn_opt3-o64-Ofast: rnn_opt3.c
+	opencc -lm -std=c99 -Ofast $< -o $@
 
 rnn_opt4-gcc-O2: rnn_opt4.c
 	gcc -lm -O2 -std=c99 $< -o $@
 	icc -vec-report1 -O2 -restrict $< -o $@
 rnn_opt4-icc-O3: rnn_opt4.c
 	icc -vec-report1 -O3 -restrict $< -o $@
+rnn_opt4-o64-O2: rnn_opt4.c
+	opencc -lm -std=c99 -O2 $< -o $@
+rnn_opt4-o64-O3: rnn_opt4.c
+	opencc -lm -std=c99 -O3 $< -o $@
+rnn_opt4-o64-Ofast: rnn_opt4.c
+	opencc -lm -std=c99 -Ofast $< -o $@
 
 num_c=30
 num_s=1000