f6fdb5f55a
a1ac3750f Merge branch 'dev' 5f4ba971f v6.68 cac2c175f update doc 1b08a8248 add test of prefetchiti bef70d9b1 add prefetchit{0,1} f66785876 add detection of prefetchiti 124617ac9 Merge branch 'dev' 1bce8be17 Merge commit 'fbb18f6' into dev bebfe64a3 [test] X32 is optional and remove CFLAGS d8c332cef Merge branch 'Tachi107-small-changes' into dev fbb18f69d ci: use containers 8a974696c test: simplify makefile 1efe9fe7c Merge branch 'dev' bb70083e6 v6.67 436e452d7 update doc 47ff6ef42 I get an error after all on GitHub action 445c0dcec add test of CMPccXADD c9347907d add CMPccXADD dc792cc56 add detection of cmpccxadd 62be84cc8 fix detection of boost b5ac7b0f0 Merge branch 'dev' 05dd400e0 recover a removed line 94eff6246 v6.66 ec3fadeba update doc 00bfaaa7f add test of rao-int 0f2f1aaa6 support rio-int 6c047f480 detect rao-int f07c5c255 fix args of EmptyAllocator::alloc in test 04d3eb5f5 stop if a test script causes an error 1c1d2366f disable boost sample cfb1127c3 tweak 5fcbeb7c4 [sample] change the way of detection of boost bafc1ee60 CXX uses g++ as default value d8cabc6cb remove warning of blace bc73a0816 remove -fno-operator-names option 6989aea94 use CXX instead of g++ a7c5a1bd7 use English 1bfbd8c4d Fix incorrect format strings 0ecef5c28 Merge branch 'dev' 7556c20ba update doc a15709271 v6.65 3b83aab3e add detect_x32 to TARGET 8c64bbbc3 use gcc instead of dpkg for portability 5e9a9b96f test_avx512.sh runs on x32 8ae01b0c2 disable some tests on x32 83b3da217 x32 does not check large disp 693ab8c9d sizeof(void*) = 4 on x32, so disable the test 348e3e548 Merge branch 'dev' 11b9c4dc0 v6.64 459636196 add T_M_K flag to vpmov* 1d3722928 add include path 5e27eddae move CrearError from LabelManager::reset() to CodeGenerator::reset() f8ea5c28d Merge branch 'dev' 20b2b1eae v6.63 3706869f8 desc. of setDefaultEncoding d6f2d7577 add test of setDefaultEncoding 3b0a19c41 vpmadd52{h,l}uq for avx-ifma 95752ebd7 add tAVX_IFMA cd36e31ea [sample] show AMX_FP16/AVX_VNNI_INT8/AVX_NE_CONVERT e5858af27 add setDefaultEncoding 2f7fb0220 modify gen.cpp for AVX-NE-CONVERT/AVX-VNNI-INT8/AMX-FP16 1c5cb7efa add AVX-NE-CONVERT instructions 564fe9acd add AVX-VNNI-INT8 instructions cd14d07b1 add AMX-FP16 instruction 7811f593c Merge pull request #161 from scribam/patch-1 2218f6c08 Update changelog.md 7bccdbbb4 Merge pull request #160 from herumi/dev 5fcf87596 compile nasm-2.15 instead of apt install e31961ea8 v6.62 ff4f9e65c update doc 9c8fb81db disable wrong detection of gcc -Warray-bounds 6b7519659 add serialize e16582696 Merge branch 'JonLiu1993-vcpkg-installition' into dev edbb410fb Add vcpkg installation instructions 055d31242 Merge branch 'dev' 21ab98441 Merge branch 'akodanka-enable_CIV' into dev ed4d598e3 Changes to compile xbyak project for openvino b652430c4 mingw uses __cpuidex 48457bfa0 Merge branch 'dev' 29cb524d1 v6.61.2 1a9a0b0e1 avoid including algorithm header in xbyak_util.h 6fadefd04 Merge branch 'dev' fc1c18a9d update doc f7cae7f11 v6.61.1 6f5ec5cf3 Merge branch 'doyaGu-master' into dev 4554d6bb9 Fix error related to XBYAK_NOEXCEPT git-subtree-dir: externals/xbyak git-subtree-split: a1ac3750f9a639b5a6c6d6c7da4259b8d6790989
128 lines
3.1 KiB
Makefile
128 lines
3.1 KiB
Makefile
XBYAK_INC=../xbyak/xbyak.h
|
|
CXX?=g++
|
|
|
|
BOOST_EXIST=$(shell echo "#include <boost/spirit/core.hpp>" | $(CXX) -x c++ -c - 2>/dev/null && echo 1)
|
|
UNAME_M=$(shell uname -m)
|
|
|
|
ONLY_64BIT=0
|
|
ifeq ($(shell uname -s),Darwin)
|
|
ONLY_64BIT=1
|
|
OS=mac
|
|
ifeq ($(UNAME_M),x86_64)
|
|
BIT=64
|
|
endif
|
|
ifeq ($(UNAME_M),i386)
|
|
BIT=32
|
|
endif
|
|
ifeq ($(shell sw_vers -productVersion | cut -c1-4 | sed 's/\.//'),105)
|
|
ifeq ($(shell sysctl -n hw.cpu64bit_capable),1)
|
|
BIT=64
|
|
endif
|
|
endif
|
|
else
|
|
BIT=32
|
|
ifeq ($(UNAME_M),x86_64)
|
|
BIT=64
|
|
endif
|
|
ifeq ($(UNAME_M),amd64)
|
|
BIT=64
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(BIT),64)
|
|
TARGET += test64 bf64 memfunc64 test_util64 jmp_table64
|
|
ifeq ($(BOOST_EXIST),1)
|
|
TARGET += calc64 #calc2_64
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(OS),mac)
|
|
TARGET += static_buf64
|
|
TARGET += memfd
|
|
endif
|
|
|
|
|
|
ifneq ($(ONLY_64BIT),1)
|
|
TARGET += test quantize bf toyvm test_util memfunc static_buf jmp_table
|
|
ifeq ($(BOOST_EXIST),1)
|
|
TARGET += calc #calc2
|
|
endif
|
|
endif
|
|
|
|
all: $(TARGET)
|
|
|
|
CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith #-pedantic
|
|
|
|
CFLAGS=-g -O2 -fomit-frame-pointer -Wall -I../ $(CFLAGS_WARN) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
|
|
|
|
test:
|
|
$(CXX) $(CFLAGS) test0.cpp -o $@ -m32
|
|
|
|
quantize:
|
|
$(CXX) $(CFLAGS) quantize.cpp -o $@ -m32
|
|
|
|
calc:
|
|
$(CXX) $(CFLAGS) calc.cpp -o $@ -m32
|
|
calc64:
|
|
$(CXX) $(CFLAGS) calc.cpp -o $@ -m64
|
|
calc2:
|
|
$(CXX) $(CFLAGS) calc2.cpp -o $@ -m32
|
|
calc2_64:
|
|
$(CXX) $(CFLAGS) calc2.cpp -o $@ -m64
|
|
|
|
bf:
|
|
$(CXX) $(CFLAGS) bf.cpp -o $@ -m32
|
|
bf64:
|
|
$(CXX) $(CFLAGS) bf.cpp -o $@ -m64
|
|
|
|
memfunc:
|
|
$(CXX) $(CFLAGS) memfunc.cpp -o $@ -m32
|
|
memfunc64:
|
|
$(CXX) $(CFLAGS) memfunc.cpp -o $@ -m64
|
|
|
|
toyvm:
|
|
$(CXX) $(CFLAGS) toyvm.cpp -o $@ -m32
|
|
|
|
test64:
|
|
$(CXX) $(CFLAGS) test0.cpp -o $@ -m64
|
|
test_util:
|
|
$(CXX) $(CFLAGS) test_util.cpp -o $@ -m32
|
|
test_util64:
|
|
$(CXX) $(CFLAGS) test_util.cpp -o $@ -m64
|
|
static_buf:
|
|
$(CXX) $(CFLAGS) static_buf.cpp -o $@ -m32
|
|
static_buf64:
|
|
$(CXX) $(CFLAGS) static_buf.cpp -o $@ -m64
|
|
jmp_table:
|
|
$(CXX) $(CFLAGS) jmp_table.cpp -o $@ -m32
|
|
jmp_table64:
|
|
$(CXX) $(CFLAGS) jmp_table.cpp -o $@ -m64
|
|
memfd:
|
|
$(CXX) $(CFLAGS) memfd.cpp -o $@ -m64
|
|
profiler: profiler.cpp ../xbyak/xbyak_util.h
|
|
$(CXX) $(CFLAGS) profiler.cpp -o $@
|
|
profiler-vtune: profiler.cpp ../xbyak/xbyak_util.h
|
|
$(CXX) $(CFLAGS) profiler.cpp -o $@ -DXBYAK_USE_VTUNE -I /opt/intel/vtune_amplifier/include/ -L /opt/intel/vtune_amplifier/lib64 -ljitprofiling -ldl
|
|
|
|
clean:
|
|
rm -rf $(TARGET) profiler profiler-vtune
|
|
|
|
test : test0.cpp $(XBYAK_INC)
|
|
test64: test0.cpp $(XBYAK_INC)
|
|
quantize : quantize.cpp $(XBYAK_INC)
|
|
calc : calc.cpp $(XBYAK_INC)
|
|
calc64 : calc.cpp $(XBYAK_INC)
|
|
calc2 : calc2.cpp $(XBYAK_INC)
|
|
calc2_64 : calc2.cpp $(XBYAK_INC)
|
|
bf : bf.cpp $(XBYAK_INC)
|
|
bf64 : bf.cpp $(XBYAK_INC)
|
|
memfunc : memfunc.cpp $(XBYAK_INC)
|
|
memfunc64 : memfunc.cpp $(XBYAK_INC)
|
|
toyvm : toyvm.cpp $(XBYAK_INC)
|
|
static_buf: static_buf.cpp $(XBYAK_INC)
|
|
static_buf64: static_buf.cpp $(XBYAK_INC)
|
|
test_util : test_util.cpp $(XBYAK_INC) ../xbyak/xbyak_util.h
|
|
test_util2 : test_util.cpp $(XBYAK_INC) ../xbyak/xbyak_util.h
|
|
jmp_table: jmp_table.cpp $(XBYAK_INC)
|
|
jmp_table64: jmp_table.cpp $(XBYAK_INC)
|
|
memfd: memfd.cpp $(XBYAK_INC)
|