diff options
author | Kenneth Heafield <github@kheafield.com> | 2018-06-14 12:00:55 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2018-06-14 12:00:55 +0300 |
commit | e50b08d2a930e3f0d7881ac80a807f990d579be2 (patch) | |
tree | aee5a75a9a4b30fe142519e2f44332497cf544eb /Makefile | |
parent | acf2a108481e30ad94a8cb1a1151d53506fbe628 (diff) |
AVX2 version
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,18 +1,21 @@ CXX := g++ -CXXFLAGS := -DNDEBUG -Wall -Werror -fPIC -O3 -march=native -mavx512vl -mavx512bw -SRC := AVX_Matrix_Mult.cc SSE_Matrix_Mult.cc Quantize.cc StopWatch.cc +CXXFLAGS := -DNDEBUG -Wall -Werror -fPIC -O3 -march=native +SRC := avx512_gemm.cc avx2_gemm.cc SSE_Matrix_Mult.cc Quantize.cc StopWatch.cc OBJ := ${SRC:.cc=.o} all: Test QuantizeTest Benchmark +avx512_gemm.o: avx512_gemm.h avx512_gemm.cc + ${CXX} ${CXXFLAGS} -c -mavx512bw -mavx512vl avx512_gemm.cc -o avx512_gemm.o + Test: ${OBJ} Test.o ${CXX} ${CXXFLAGS} ${OBJ} Test.o -o Test Benchmark: ${OBJ} Benchmark.o ${CXX} ${CXXFLAGS} ${OBJ} Benchmark.o -o Benchmark -QuantizeTest: Quantize.o QuantizeTest.o StopWatch.o - ${CXX} ${CXXFLAGS} Quantize.o QuantizeTest.o StopWatch.o -o QuantizeTest +QuantizeTest: Quantize.o QuantizeTest.o StopWatch.o avx512_gemm.o avx2_gemm.o + ${CXX} ${CXXFLAGS} Quantize.o QuantizeTest.o StopWatch.o avx512_gemm.o avx2_gemm.o -o QuantizeTest .c.o: AVX_Matrix_Mult.h ${CXX} ${CXXFLAGS} -c $< |