 Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago  Simplifying ARMv8 build parameters
ARMv8 builds were a bit mixed up, with ThunderX2 code in ARMv8 mode
(which is not right because TX2 is ARMv8.1) as well as requiring a few
redundancies in the defines, making it harder to maintain and understand
what core has what. A few other minor issues were also fixed.
Tests were made on the following cores: A53, A57, A72, Falkor, ThunderX,
ThunderX2, and XGene.
Tests were: OpenBLAS/test, OpenBLAS/benchmark, BLAS-Tester.
A summary:
* Removed TX2 code from ARMv8 build, to make sure it is compatible with
all ARMv8 cores, not just v8.1. Also, the TX2 code has actually
harmed performance on big cores.
* Commoned up ARMv8 architectures' defines in params.h, to make sure
that all will benefit from ARMv8 settings, in addition to their own.
* Adding a few more cores, using ARMv8's include strategy, to benefit
from compiler optimisations using mtune. Also updated cache
information from the manuals, making sure we set good conservative
values by default. Removed Vulcan, as it's an alias to TX2.
* Auto-detecting most of those cores, but also updating the forced
compilation in getarch.c, to make sure the parameters are the same
whether compiled natively or forced arch.
Benefits:
* ARMv8 build is now guaranteed to work on all ARMv8 cores
* Improved performance for ARMv8 builds on some cores (A72, Falkor,
ThunderX1 and 2: up to 11%) over current develop
* Improved performance for *all* cores comparing to develop branch
before TX2's patch (9% ~ 36%)
* ThunderX1 builds are 14% faster than ARMv8 on TX1, 9% faster than
current develop's branch and 8% faster than deveop before tx2 patches
Issues:
* Regression from current develop branch for A53 (-12%) and A57 (-3%)
with ARMv8 builds, but still faster than before TX2's commit (+15%
and +24% respectively). This can be improved with a simplification of
TX2's code, to be done in future patches. At least the code is
guaranteed to be ARMv8.0 now.
Comments:
* CortexA57 builds are unchanged on A57 hardware from develop's branch,
which makes sense, as it's untouched.
* CortexA72 builds improve over A57 on A72 hardware, even if they're
using the same includes due to new compiler tunning in the makefile.
6 years ago |
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144 |
- /*****************************************************************************
- Copyright (c) 2011-2014, 2025 The OpenBLAS Project
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
-
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- 3. Neither the name of the OpenBLAS project nor the names of
- its contributors may be used to endorse or promote products
- derived from this software without specific prior written
- permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- **********************************************************************************/
-
- /*********************************************************************/
- /* Copyright 2009, 2010 The University of Texas at Austin. */
- /* All rights reserved. */
- /* */
- /* Redistribution and use in source and binary forms, with or */
- /* without modification, are permitted provided that the following */
- /* conditions are met: */
- /* */
- /* 1. Redistributions of source code must retain the above */
- /* copyright notice, this list of conditions and the following */
- /* disclaimer. */
- /* */
- /* 2. Redistributions in binary form must reproduce the above */
- /* copyright notice, this list of conditions and the following */
- /* disclaimer in the documentation and/or other materials */
- /* provided with the distribution. */
- /* */
- /* THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF TEXAS AT */
- /* AUSTIN ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, */
- /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
- /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
- /* DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF TEXAS AT */
- /* AUSTIN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, */
- /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */
- /* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE */
- /* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR */
- /* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
- /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
- /* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT */
- /* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
- /* POSSIBILITY OF SUCH DAMAGE. */
- /* */
- /* The views and conclusions contained in the software and */
- /* documentation are those of the authors and should not be */
- /* interpreted as representing official policies, either expressed */
- /* or implied, of The University of Texas at Austin. */
- /*********************************************************************/
-
- #if defined(__WIN32__) || defined(__WIN64__) || defined(__CYGWIN32__) || defined(__CYGWIN64__) || defined(_WIN32) || defined(_WIN64)
- #define OS_WINDOWS
- #endif
-
- #if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
- #define INTEL_AMD
- #endif
-
- #include <stdio.h>
- #include <string.h>
- #ifdef OS_WINDOWS
- #include <windows.h>
- #endif
- #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__APPLE__)
- #include <sys/types.h>
- #include <sys/sysctl.h>
- #endif
- #if defined(linux) || defined(__sun__)
- #include <sys/sysinfo.h>
- #include <unistd.h>
- #endif
- #if defined(_AIX)
- #include <unistd.h>
- #include <sys/systemcfg.h>
- #include <sys/sysinfo.h>
- #endif
-
- /* #define FORCE_P2 */
- /* #define FORCE_KATMAI */
- /* #define FORCE_COPPERMINE */
- /* #define FORCE_NORTHWOOD */
- /* #define FORCE_PRESCOTT */
- /* #define FORCE_BANIAS */
- /* #define FORCE_YONAH */
- /* #define FORCE_CORE2 */
- /* #define FORCE_PENRYN */
- /* #define FORCE_DUNNINGTON */
- /* #define FORCE_NEHALEM */
- /* #define FORCE_SANDYBRIDGE */
- /* #define FORCE_ATOM */
- /* #define FORCE_ATHLON */
- /* #define FORCE_OPTERON */
- /* #define FORCE_OPTERON_SSE3 */
- /* #define FORCE_BARCELONA */
- /* #define FORCE_SHANGHAI */
- /* #define FORCE_ISTANBUL */
- /* #define FORCE_BOBCAT */
- /* #define FORCE_BULLDOZER */
- /* #define FORCE_PILEDRIVER */
- /* #define FORCE_SSE_GENERIC */
- /* #define FORCE_VIAC3 */
- /* #define FORCE_NANO */
- /* #define FORCE_POWER3 */
- /* #define FORCE_POWER4 */
- /* #define FORCE_POWER5 */
- /* #define FORCE_POWER6 */
- /* #define FORCE_POWER7 */
- /* #define FORCE_POWER8 */
- /* #define FORCE_PPCG4 */
- /* #define FORCE_PPC970 */
- /* #define FORCE_PPC970MP */
- /* #define FORCE_PPC440 */
- /* #define FORCE_PPC440FP2 */
- /* #define FORCE_CELL */
- /* #define FORCE_MIPS64_GENERIC */
- /* #define FORCE_SICORTEX */
- /* #define FORCE_LOONGSON3R3 */
- /* #define FORCE_LOONGSON3R4 */
- /* #define FORCE_LOONGSON3R5 */
- /* #define FORCE_LOONGSON2K1000 */
- /* #define FORCE_LOONGSONGENERIC */
- /* #define FORCE_LA64_GENERIC */
- /* #define FORCE_LA264 */
- /* #define FORCE_LA464 */
- /* #define FORCE_I6400 */
- /* #define FORCE_P6600 */
- /* #define FORCE_P5600 */
- /* #define FORCE_I6500 */
- /* #define FORCE_ITANIUM2 */
- /* #define FORCE_SPARC */
- /* #define FORCE_SPARCV7 */
- /* #define FORCE_ZARCH_GENERIC */
- /* #define FORCE_Z13 */
- /* #define FORCE_EV4 */
- /* #define FORCE_EV5 */
- /* #define FORCE_EV6 */
- /* #define FORCE_CSKY */
- /* #define FORCE_CK860FV */
- /* #define FORCE_GENERIC */
- /* #define FORCE_AMPERE1 */
-
- #ifdef FORCE_P2
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "PENTIUM2"
- #define ARCHCONFIG "-DPENTIUM2 " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX"
- #define LIBNAME "p2"
- #define CORENAME "P5"
- #endif
-
- #ifdef FORCE_KATMAI
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "PENTIUM3"
- #define ARCHCONFIG "-DPENTIUM3 " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE "
- #define LIBNAME "katmai"
- #define CORENAME "KATMAI"
- #endif
-
- #ifdef FORCE_COPPERMINE
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "PENTIUM3"
- #define ARCHCONFIG "-DPENTIUM3 " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE "
- #define LIBNAME "coppermine"
- #define CORENAME "COPPERMINE"
- #endif
-
- #ifdef FORCE_NORTHWOOD
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "PENTIUM4"
- #define ARCHCONFIG "-DPENTIUM4 " \
- "-DL1_DATA_SIZE=8192 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 "
- #define LIBNAME "northwood"
- #define CORENAME "NORTHWOOD"
- #endif
-
- #ifdef FORCE_PRESCOTT
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "PENTIUM4"
- #define ARCHCONFIG "-DPENTIUM4 " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3"
- #define LIBNAME "prescott"
- #define CORENAME "PRESCOTT"
- #endif
-
- #ifdef FORCE_BANIAS
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "BANIAS"
- #define ARCHCONFIG "-DPENTIUMM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 "
- #define LIBNAME "banias"
- #define CORENAME "BANIAS"
- #endif
-
- #ifdef FORCE_YONAH
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "YONAH"
- #define ARCHCONFIG "-DPENTIUMM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 "
- #define LIBNAME "yonah"
- #define CORENAME "YONAH"
- #endif
-
- #ifdef FORCE_CORE2
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "CONRORE"
- #define ARCHCONFIG "-DCORE2 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=256 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3"
- #define LIBNAME "core2"
- #define CORENAME "CORE2"
- #endif
-
- #ifdef FORCE_PENRYN
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "PENRYN"
- #define ARCHCONFIG "-DPENRYN " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=256 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1"
- #define LIBNAME "penryn"
- #define CORENAME "PENRYN"
- #endif
-
- #ifdef FORCE_DUNNINGTON
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "DUNNINGTON"
- #define ARCHCONFIG "-DDUNNINGTON " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DL3_SIZE=16777216 -DL3_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=256 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1"
- #define LIBNAME "dunnington"
- #define CORENAME "DUNNINGTON"
- #endif
-
- #ifdef FORCE_NEHALEM
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "NEHALEM"
- #define ARCHCONFIG "-DNEHALEM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2"
- #define LIBNAME "nehalem"
- #define CORENAME "NEHALEM"
- #endif
-
- #ifdef FORCE_SANDYBRIDGE
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #ifdef NO_AVX
- #define SUBARCHITECTURE "NEHALEM"
- #define ARCHCONFIG "-DNEHALEM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2"
- #define LIBNAME "nehalem"
- #define CORENAME "NEHALEM"
- #else
- #define SUBARCHITECTURE "SANDYBRIDGE"
- #define ARCHCONFIG "-DSANDYBRIDGE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
- #define LIBNAME "sandybridge"
- #define CORENAME "SANDYBRIDGE"
- #endif
- #endif
-
- #ifdef FORCE_HASWELL
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #ifdef NO_AVX2
- #ifdef NO_AVX
- #define SUBARCHITECTURE "NEHALEM"
- #define ARCHCONFIG "-DNEHALEM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2"
- #define LIBNAME "nehalem"
- #define CORENAME "NEHALEM"
- #else
- #define SUBARCHITECTURE "SANDYBRIDGE"
- #define ARCHCONFIG "-DSANDYBRIDGE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
- #define LIBNAME "sandybridge"
- #define CORENAME "SANDYBRIDGE"
- #endif
- #else
- #define SUBARCHITECTURE "HASWELL"
- #define ARCHCONFIG "-DHASWELL " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX " \
- "-DHAVE_AVX2 -DHAVE_FMA3 -DFMA3"
- #define LIBNAME "haswell"
- #define CORENAME "HASWELL"
- #endif
- #endif
-
- #ifdef FORCE_SKYLAKEX
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #ifdef NO_AVX512
- #ifdef NO_AVX2
- #ifdef NO_AVX
- #define SUBARCHITECTURE "NEHALEM"
- #define ARCHCONFIG "-DNEHALEM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2"
- #define LIBNAME "nehalem"
- #define CORENAME "NEHALEM"
- #else
- #define SUBARCHITECTURE "SANDYBRIDGE"
- #define ARCHCONFIG "-DSANDYBRIDGE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
- #define LIBNAME "sandybridge"
- #define CORENAME "SANDYBRIDGE"
- #endif
- #else
- #define SUBARCHITECTURE "HASWELL"
- #define ARCHCONFIG "-DHASWELL " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX " \
- "-DHAVE_AVX2 -DHAVE_FMA3 -DFMA3"
- #define LIBNAME "haswell"
- #define CORENAME "HASWELL"
- #endif
- #else
- #define SUBARCHITECTURE "SKYLAKEX"
- #define ARCHCONFIG "-DSKYLAKEX " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX " \
- "-DHAVE_AVX2 -DHAVE_FMA3 -DFMA3 -DHAVE_AVX512VL -march=skylake-avx512"
- #define LIBNAME "skylakex"
- #define CORENAME "SKYLAKEX"
- #endif
- #endif
-
- #ifdef FORCE_COOPERLAKE
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #ifdef NO_AVX512
- #ifdef NO_AVX2
- #ifdef NO_AVX
- #define SUBARCHITECTURE "NEHALEM"
- #define ARCHCONFIG "-DNEHALEM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2"
- #define LIBNAME "nehalem"
- #define CORENAME "NEHALEM"
- #else
- #define SUBARCHITECTURE "SANDYBRIDGE"
- #define ARCHCONFIG "-DSANDYBRIDGE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
- #define LIBNAME "sandybridge"
- #define CORENAME "SANDYBRIDGE"
- #endif
- #else
- #define SUBARCHITECTURE "HASWELL"
- #define ARCHCONFIG "-DHASWELL " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX " \
- "-DHAVE_AVX2 -DHAVE_FMA3 -DFMA3"
- #define LIBNAME "haswell"
- #define CORENAME "HASWELL"
- #endif
- #else
- #define SUBARCHITECTURE "COOPERLAKE"
- #define ARCHCONFIG "-DCOOPERLAKE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX " \
- "-DHAVE_AVX2 -DHAVE_FMA3 -DFMA3 -DHAVE_AVX512VL -DHAVE_AVX512BF16 -march=cooperlake"
- #define LIBNAME "cooperlake"
- #define CORENAME "COOPERLAKE"
- #endif
- #endif
-
- #ifdef FORCE_SAPPHIRERAPIDS
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #ifdef NO_AVX512
- #ifdef NO_AVX2
- #ifdef NO_AVX
- #define SUBARCHITECTURE "NEHALEM"
- #define ARCHCONFIG "-DNEHALEM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2"
- #define LIBNAME "nehalem"
- #define CORENAME "NEHALEM"
- #else
- #define SUBARCHITECTURE "SANDYBRIDGE"
- #define ARCHCONFIG "-DSANDYBRIDGE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
- #define LIBNAME "sandybridge"
- #define CORENAME "SANDYBRIDGE"
- #endif
- #else
- #define SUBARCHITECTURE "HASWELL"
- #define ARCHCONFIG "-DHASWELL " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX " \
- "-DHAVE_AVX2 -DHAVE_FMA3 -DFMA3"
- #define LIBNAME "haswell"
- #define CORENAME "HASWELL"
- #endif
- #else
- #define SUBARCHITECTURE "SAPPHIRERAPIDS"
- #define ARCHCONFIG "-DSAPPHIRERAPIDS " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX " \
- "-DHAVE_AVX2 -DHAVE_FMA3 -DFMA3 -DHAVE_AVX512VL -DHAVE_AVX512BF16 -march=sapphirerapids"
- #define LIBNAME "sapphirerapids"
- #define CORENAME "SAPPHIRERAPIDS"
- #endif
- #endif
-
- #ifdef FORCE_ATOM
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "ATOM"
- #define ARCHCONFIG "-DATOM " \
- "-DL1_DATA_SIZE=24576 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3"
- #define LIBNAME "atom"
- #define CORENAME "ATOM"
- #endif
-
- #ifdef FORCE_ATHLON
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "ATHLON"
- #define ARCHCONFIG "-DATHLON " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=32 -DDTB_SIZE=4096 -DHAVE_3DNOW " \
- "-DHAVE_3DNOWEX -DHAVE_MMX -DHAVE_SSE "
- #define LIBNAME "athlon"
- #define CORENAME "ATHLON"
- #endif
-
- #ifdef FORCE_OPTERON
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "OPTERON"
- #define ARCHCONFIG "-DOPTERON " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=32 -DDTB_SIZE=4096 -DHAVE_3DNOW " \
- "-DHAVE_3DNOWEX -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 "
- #define LIBNAME "opteron"
- #define CORENAME "OPTERON"
- #endif
-
- #ifdef FORCE_OPTERON_SSE3
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "OPTERON"
- #define ARCHCONFIG "-DOPTERON " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=32 -DDTB_SIZE=4096 -DHAVE_3DNOW " \
- "-DHAVE_3DNOWEX -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3"
- #define LIBNAME "opteron"
- #define CORENAME "OPTERON"
- #endif
-
- #if defined(FORCE_BARCELONA) || defined(FORCE_SHANGHAI) || defined(FORCE_ISTANBUL)
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "BARCELONA"
- #define ARCHCONFIG "-DBARCELONA " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 -DL3_SIZE=2097152 " \
- "-DDTB_DEFAULT_ENTRIES=48 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 " \
- "-DHAVE_SSE4A -DHAVE_MISALIGNSSE -DHAVE_128BITFPU -DHAVE_FASTMOVU"
- #define LIBNAME "barcelona"
- #define CORENAME "BARCELONA"
- #endif
-
- #if defined(FORCE_BOBCAT)
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "BOBCAT"
- #define ARCHCONFIG "-DBOBCAT " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=40 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 " \
- "-DHAVE_SSE4A -DHAVE_MISALIGNSSE -DHAVE_CFLUSH -DHAVE_CMOV"
- #define LIBNAME "bobcat"
- #define CORENAME "BOBCAT"
- #endif
-
- #if defined (FORCE_BULLDOZER)
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "BULLDOZER"
- #define ARCHCONFIG "-DBULLDOZER " \
- "-DL1_DATA_SIZE=49152 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1024000 -DL2_LINESIZE=64 -DL3_SIZE=16777216 " \
- "-DDTB_DEFAULT_ENTRIES=32 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 " \
- "-DHAVE_SSE4A -DHAVE_MISALIGNSSE -DHAVE_128BITFPU -DHAVE_FASTMOVU " \
- "-DHAVE_AVX"
- #define LIBNAME "bulldozer"
- #define CORENAME "BULLDOZER"
- #endif
-
- #if defined (FORCE_PILEDRIVER)
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "PILEDRIVER"
- #define ARCHCONFIG "-DPILEDRIVER " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL3_SIZE=12582912 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 " \
- "-DHAVE_SSE4A -DHAVE_MISALIGNSSE -DHAVE_128BITFPU -DHAVE_FASTMOVU -DHAVE_CFLUSH " \
- "-DHAVE_AVX -DHAVE_FMA3"
- #define LIBNAME "piledriver"
- #define CORENAME "PILEDRIVER"
- #endif
-
- #if defined (FORCE_STEAMROLLER)
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "STEAMROLLER"
- #define ARCHCONFIG "-DSTEAMROLLER " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL3_SIZE=12582912 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 " \
- "-DHAVE_SSE4A -DHAVE_MISALIGNSSE -DHAVE_128BITFPU -DHAVE_FASTMOVU -DHAVE_CFLUSH " \
- "-DHAVE_AVX -DHAVE_FMA3"
- #define LIBNAME "steamroller"
- #define CORENAME "STEAMROLLER"
- #endif
-
- #if defined (FORCE_EXCAVATOR)
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "EXCAVATOR"
- #define ARCHCONFIG "-DEXCAVATOR " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL3_SIZE=12582912 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 " \
- "-DHAVE_SSE4A -DHAVE_MISALIGNSSE -DHAVE_128BITFPU -DHAVE_FASTMOVU -DHAVE_CFLUSH " \
- "-DHAVE_AVX -DHAVE_FMA3"
- #define LIBNAME "excavator"
- #define CORENAME "EXCAVATOR"
- #endif
-
- #if defined (FORCE_ZEN)
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #ifdef NO_AVX2
- #ifdef NO_AVX
- #define SUBARCHITECTURE "NEHALEM"
- #define ARCHCONFIG "-DNEHALEM " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2"
- #define LIBNAME "nehalem"
- #define CORENAME "NEHALEM"
- #else
- #define SUBARCHITECTURE "SANDYBRIDGE"
- #define ARCHCONFIG "-DSANDYBRIDGE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
- #define LIBNAME "sandybridge"
- #define CORENAME "SANDYBRIDGE"
- #endif
- #else
- #define SUBARCHITECTURE "ZEN"
- #define ARCHCONFIG "-DZEN " \
- "-DL1_CODE_SIZE=32768 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=8 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL2_CODE_ASSOCIATIVE=8 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=8 " \
- "-DL3_SIZE=16777216 -DL3_LINESIZE=64 -DL3_ASSOCIATIVE=8 " \
- "-DITB_DEFAULT_ENTRIES=64 -DITB_SIZE=4096 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 " \
- "-DHAVE_SSE4A -DHAVE_MISALIGNSSE -DHAVE_128BITFPU -DHAVE_FASTMOVU -DHAVE_CFLUSH " \
- "-DHAVE_AVX -DHAVE_AVX2 -DHAVE_FMA3 -DFMA3"
- #define LIBNAME "zen"
- #define CORENAME "ZEN"
- #endif
- #endif
-
-
- #ifdef FORCE_SSE_GENERIC
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "GENERIC"
- #define ARCHCONFIG "-DGENERIC " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2"
- #define LIBNAME "generic"
- #define CORENAME "GENERIC"
- #endif
-
- #ifdef FORCE_VIAC3
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "VIAC3"
- #define ARCHCONFIG "-DVIAC3 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=65536 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 " \
- "-DHAVE_MMX -DHAVE_SSE "
- #define LIBNAME "viac3"
- #define CORENAME "VIAC3"
- #endif
-
- #ifdef FORCE_NANO
- #define FORCE
- #define FORCE_INTEL
- #define ARCHITECTURE "X86"
- #define SUBARCHITECTURE "NANO"
- #define ARCHCONFIG "-DNANO " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 " \
- "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3"
- #define LIBNAME "nano"
- #define CORENAME "NANO"
- #endif
-
- #ifdef FORCE_POWER3
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "POWER3"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPOWER3 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=256 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "power3"
- #define CORENAME "POWER3"
- #endif
-
- #ifdef FORCE_POWER4
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "POWER4"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPOWER4 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=1509949 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=6 "
- #define LIBNAME "power4"
- #define CORENAME "POWER4"
- #endif
-
- #ifdef FORCE_POWER5
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "POWER5"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPOWER5 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=1509949 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=6 "
- #define LIBNAME "power5"
- #define CORENAME "POWER5"
- #endif
-
- #if defined(FORCE_POWER6) || defined(FORCE_POWER7)
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "POWER6"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPOWER6 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=4194304 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "power6"
- #define CORENAME "POWER6"
- #endif
-
- #if defined(FORCE_POWER8)
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "POWER8"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPOWER8 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=4194304 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "power8"
- #define CORENAME "POWER8"
- #endif
-
- #if defined(FORCE_POWER9)
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "POWER9"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPOWER9 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=4194304 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "power9"
- #define CORENAME "POWER9"
- #endif
-
- #if defined(FORCE_POWER10) || (FORCE_POWER11)
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "POWER10"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPOWER10 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=4194304 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "power10"
- #define CORENAME "POWER10"
- #endif
-
- #ifdef FORCE_PPCG4
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "PPCG4"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPPCG4 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "ppcg4"
- #define CORENAME "PPCG4"
- #endif
-
- #ifdef FORCE_PPC970
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "PPC970"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPPC970 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "ppc970"
- #define CORENAME "PPC970"
- #endif
-
- #ifdef FORCE_PPC970MP
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "PPC970"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPPC970 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=1024976 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "ppc970mp"
- #define CORENAME "PPC970"
- #endif
-
- #ifdef FORCE_PPC440
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "PPC440"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPPC440 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=16384 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=16 "
- #define LIBNAME "ppc440"
- #define CORENAME "PPC440"
- #endif
-
- #ifdef FORCE_PPC440FP2
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "PPC440FP2"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DPPC440FP2 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=16384 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=16 "
- #define LIBNAME "ppc440FP2"
- #define CORENAME "PPC440FP2"
- #endif
-
- #ifdef FORCE_CELL
- #define FORCE
- #define ARCHITECTURE "POWER"
- #define SUBARCHITECTURE "CELL"
- #define SUBDIRNAME "power"
- #define ARCHCONFIG "-DCELL " \
- "-DL1_DATA_SIZE=262144 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "cell"
- #define CORENAME "CELL"
- #endif
-
- #ifdef FORCE_MIPS64_GENERIC
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "MIPS64_GENERIC"
- #define SUBDIRNAME "mips64"
- #define ARCHCONFIG "-DMIPS64_GENERIC " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "mips64_generic"
- #define CORENAME "MIPS64_GENERIC"
- #else
- #endif
-
- #ifdef FORCE_SICORTEX
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "SICORTEX"
- #define SUBDIRNAME "mips"
- #define ARCHCONFIG "-DSICORTEX " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=32 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "mips"
- #define CORENAME "sicortex"
- #endif
-
-
- #if defined FORCE_LOONGSON3R3 || defined FORCE_LOONGSON3A || defined FORCE_LOONGSON3B
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "LOONGSON3R3"
- #define SUBDIRNAME "mips64"
- #define ARCHCONFIG "-DLOONGSON3R3 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "loongson3r3"
- #define CORENAME "LOONGSON3R3"
- #else
- #endif
-
- #ifdef FORCE_LOONGSON3R4
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "LOONGSON3R4"
- #define SUBDIRNAME "mips64"
- #define ARCHCONFIG "-DLOONGSON3R4 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 -DHAVE_MSA"
- #define LIBNAME "loongson3r4"
- #define CORENAME "LOONGSON3R4"
- #else
- #endif
-
- #if defined(FORCE_LA464) || defined(FORCE_LOONGSON3R5)
- #define FORCE
- #define ARCHITECTURE "LOONGARCH"
- #ifdef NO_LASX
- #ifdef NO_LSX
- #define SUBARCHITECTURE "LA64_GENERIC"
- #define SUBDIRNAME "loongarch64"
- #define ARCHCONFIG "-DLA64_GENERIC " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "la64_generic"
- #define CORENAME "LA64_GENERIC"
- #else
- #define SUBARCHITECTURE "LA264"
- #define SUBDIRNAME "loongarch64"
- #define ARCHCONFIG "-DLA264 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "la264"
- #define CORENAME "LA264"
- #endif
- #else
- #define SUBARCHITECTURE "LA464"
- #define SUBDIRNAME "loongarch64"
- #define ARCHCONFIG "-DLA464 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "la464"
- #define CORENAME "LA464"
- #endif
- #endif
-
- #if defined(FORCE_LA264) || defined(FORCE_LOONGSON2K1000)
- #define FORCE
- #define ARCHITECTURE "LOONGARCH"
- #ifdef NO_LSX
- #define SUBARCHITECTURE "LA64_GENERIC"
- #define SUBDIRNAME "loongarch64"
- #define ARCHCONFIG "-DLA64_GENERIC " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "la64_generic"
- #define CORENAME "LA64_GENERIC"
- #else
- #define SUBARCHITECTURE "LA264"
- #define SUBDIRNAME "loongarch64"
- #define ARCHCONFIG "-DLA264 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "la264"
- #define CORENAME "LA264"
- #endif
- #endif
-
- #if defined(FORCE_LA64_GENERIC) || defined(FORCE_LOONGSONGENERIC)
- #define FORCE
- #define ARCHITECTURE "LOONGARCH"
- #define SUBARCHITECTURE "LA64_GENERIC"
- #define SUBDIRNAME "loongarch64"
- #define ARCHCONFIG "-DLA64_GENERIC " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "la64_generic"
- #define CORENAME "LA64_GENERIC"
- #endif
-
- #ifdef FORCE_I6400
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "I6400"
- #define SUBDIRNAME "mips64"
- #define ARCHCONFIG "-DI6400 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 -DHAVE_MSA "
- #define LIBNAME "i6400"
- #define CORENAME "I6400"
- #else
- #endif
-
- #ifdef FORCE_P6600
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "P6600"
- #define SUBDIRNAME "mips64"
- #define ARCHCONFIG "-DP6600 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "p6600"
- #define CORENAME "P6600"
- #else
- #endif
-
- #ifdef FORCE_P5600
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "P5600"
- #define SUBDIRNAME "mips"
- #define ARCHCONFIG "-DP5600 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8"
- #define LIBNAME "p5600"
- #define CORENAME "P5600"
- #else
- #endif
-
- #ifdef FORCE_MIPS1004K
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "MIPS1004K"
- #define SUBDIRNAME "mips"
- #define ARCHCONFIG "-DMIPS1004K " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8"
- #define LIBNAME "mips1004K"
- #define CORENAME "MIPS1004K"
- #else
- #endif
-
- #ifdef FORCE_MIPS24K
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "MIPS24K"
- #define SUBDIRNAME "mips"
- #define ARCHCONFIG "-DMIPS24K " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=32768 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8"
- #define LIBNAME "mips24K"
- #define CORENAME "MIPS24K"
- #else
- #endif
-
- #ifdef FORCE_I6500
- #define FORCE
- #define ARCHITECTURE "MIPS"
- #define SUBARCHITECTURE "I6500"
- #define SUBDIRNAME "mips64"
- #define ARCHCONFIG "-DI6500 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 -DHAVE_MSA"
- #define LIBNAME "i6500"
- #define CORENAME "I6500"
- #else
- #endif
-
- #ifdef FORCE_ITANIUM2
- #define FORCE
- #define ARCHITECTURE "IA64"
- #define SUBARCHITECTURE "ITANIUM2"
- #define SUBDIRNAME "ia64"
- #define ARCHCONFIG "-DITANIUM2 " \
- "-DL1_DATA_SIZE=262144 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=1572864 -DL2_LINESIZE=128 -DDTB_SIZE=16384 -DDTB_DEFAULT_ENTRIES=128 "
- #define LIBNAME "itanium2"
- #define CORENAME "itanium2"
- #endif
-
- #ifdef FORCE_SPARC
- #define FORCE
- #define ARCHITECTURE "SPARC"
- #define SUBARCHITECTURE "SPARC"
- #define SUBDIRNAME "sparc"
- #define ARCHCONFIG "-DSPARC -DV9 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1572864 -DL2_LINESIZE=64 -DDTB_SIZE=8192 -DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "sparc"
- #define CORENAME "sparc"
- #endif
-
- #ifdef FORCE_SPARCV7
- #define FORCE
- #define ARCHITECTURE "SPARC"
- #define SUBARCHITECTURE "SPARC"
- #define SUBDIRNAME "sparc"
- #define ARCHCONFIG "-DSPARC -DV7 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=1572864 -DL2_LINESIZE=64 -DDTB_SIZE=8192 -DDTB_DEFAULT_ENTRIES=64 "
- #define LIBNAME "sparcv7"
- #define CORENAME "sparcv7"
- #endif
-
- #ifdef FORCE_GENERIC
- #define FORCE
- #define ARCHITECTURE "GENERIC"
- #define SUBARCHITECTURE "GENERIC"
- #define SUBDIRNAME "generic"
- #define ARCHCONFIG "-DGENERIC " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=128 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "generic"
- #define CORENAME "generic"
- #endif
-
- #ifdef FORCE_ARMV7
- #define FORCE
- #define ARCHITECTURE "ARM"
- #define SUBARCHITECTURE "ARMV7"
- #define SUBDIRNAME "arm"
- #define ARCHCONFIG "-DARMV7 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 " \
- "-DHAVE_VFPV3 -DHAVE_VFP"
- #define LIBNAME "armv7"
- #define CORENAME "ARMV7"
- #else
- #endif
-
- #ifdef FORCE_CORTEXA9
- #define FORCE
- #define ARCHITECTURE "ARM"
- #define SUBARCHITECTURE "CORTEXA9"
- #define SUBDIRNAME "arm"
- #define ARCHCONFIG "-DCORTEXA9 -DARMV7 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 " \
- "-DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON"
- #define LIBNAME "cortexa9"
- #define CORENAME "CORTEXA9"
- #else
- #endif
-
- #ifdef FORCE_RISCV64_GENERIC
- #define FORCE
- #define ARCHITECTURE "RISCV64"
- #define SUBARCHITECTURE "RISCV64_GENERIC"
- #define SUBDIRNAME "riscv64"
- #define ARCHCONFIG "-DRISCV64_GENERIC " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "riscv64_generic"
- #define CORENAME "RISCV64_GENERIC"
- #else
- #endif
-
- #ifdef FORCE_CORTEXA15
- #define FORCE
- #define ARCHITECTURE "ARM"
- #define SUBARCHITECTURE "CORTEXA15"
- #define SUBDIRNAME "arm"
- #define ARCHCONFIG "-DCORTEXA15 -DARMV7 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 " \
- "-DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON"
- #define LIBNAME "cortexa15"
- #define CORENAME "CORTEXA15"
- #else
- #endif
-
- #ifdef FORCE_ARMV6
- #define FORCE
- #define ARCHITECTURE "ARM"
- #define SUBARCHITECTURE "ARMV6"
- #define SUBDIRNAME "arm"
- #define ARCHCONFIG "-DARMV6 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 " \
- "-DHAVE_VFP"
- #define LIBNAME "armv6"
- #define CORENAME "ARMV6"
- #else
- #endif
-
- #ifdef FORCE_ARMV5
- #define FORCE
- #define ARCHITECTURE "ARM"
- #define SUBARCHITECTURE "ARMV5"
- #define SUBDIRNAME "arm"
- #define ARCHCONFIG "-DARMV5 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=512488 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "armv5"
- #define CORENAME "ARMV5"
- #else
- #endif
-
- #ifdef FORCE_ARMV8SVE
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "ARMV8SVE"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DARMV8SVE " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DARMV8"
- #define LIBNAME "armv8sve"
- #define CORENAME "ARMV8SVE"
- #endif
-
- #ifdef FORCE_ARMV9SME
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "ARMV9SME"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DARMV9SME " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DHAVE_SME -DARMV8 -DARMV9"
- #define LIBNAME "armv9sme"
- #define CORENAME "ARMV9SME"
- #endif
-
- #ifdef FORCE_ARMV8
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "ARMV8"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DARMV8 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "armv8"
- #define CORENAME "ARMV8"
- #endif
-
- #ifdef FORCE_CORTEXA53
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA53"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA53 " \
- "-DL1_CODE_SIZE=32768 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=3 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=2 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "cortexa53"
- #define CORENAME "CORTEXA53"
- #endif
-
- #ifdef FORCE_CORTEXA57
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA57"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA57 " \
- "-DL1_CODE_SIZE=49152 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=3 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=2 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "cortexa57"
- #define CORENAME "CORTEXA57"
- #endif
-
- #ifdef FORCE_CORTEXA72
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA72"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA72 " \
- "-DL1_CODE_SIZE=49152 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=3 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=2 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "cortexa72"
- #define CORENAME "CORTEXA72"
- #endif
-
- #ifdef FORCE_CORTEXA73
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA73"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA73 " \
- "-DL1_CODE_SIZE=49152 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=3 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=2 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "cortexa73"
- #define CORENAME "CORTEXA73"
- #endif
-
- #ifdef FORCE_CORTEXA76
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA76"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA76 " \
- "-DL1_CODE_SIZE=49152 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=3 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=2 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "cortexa76"
- #define CORENAME "CORTEXA76"
- #endif
-
- #ifdef FORCE_CORTEXX1
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXX1"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXX1 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "cortexx1"
- #define CORENAME "CORTEXX1"
- #endif
-
- #ifdef FORCE_CORTEXX2
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXX2"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXX2 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DARMV8 -DARMV9"
- #define LIBNAME "cortexx2"
- #define CORENAME "CORTEXX2"
- #endif
-
- #ifdef FORCE_CORTEXA510
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA510"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA510 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DARMV8 -DARMV9"
- #define LIBNAME "cortexa510"
- #define CORENAME "CORTEXA510"
- #endif
-
- #ifdef FORCE_CORTEXA710
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA710"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA710 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DARMV8 -DARMV9"
- #define LIBNAME "cortexa710"
- #define CORENAME "CORTEXA710"
- #endif
-
- #ifdef FORCE_NEOVERSEN1
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "NEOVERSEN1"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DNEOVERSEN1 " \
- "-DL1_CODE_SIZE=65536 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=4 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=4 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8 " \
- "-march=armv8.2-a -mtune=neoverse-n1"
- #define LIBNAME "neoversen1"
- #define CORENAME "NEOVERSEN1"
- #endif
-
- #ifdef FORCE_NEOVERSEV1
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "NEOVERSEV1"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DNEOVERSEV1 " \
- "-DL1_CODE_SIZE=65536 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=4 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=4 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DARMV8 " \
- "-march=armv8.4-a+sve+bf16 -mtune=neoverse-v1"
- #define LIBNAME "neoversev1"
- #define CORENAME "NEOVERSEV1"
- #endif
-
-
- #ifdef FORCE_NEOVERSEN2
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "NEOVERSEN2"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DNEOVERSEN2 " \
- "-DL1_CODE_SIZE=65536 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=4 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=4 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DARMV8 " \
- "-march=armv8.5-a -mtune=neoverse-n2"
- #define LIBNAME "neoversen2"
- #define CORENAME "NEOVERSEN2"
- #endif
-
- #ifdef FORCE_CORTEXA55
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "CORTEXA55"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DCORTEXA55 " \
- "-DL1_CODE_SIZE=16384 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=3 " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=2 " \
- "-DL2_SIZE=65536 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "cortexa55"
- #define CORENAME "CORTEXA55"
- #endif
-
- #ifdef FORCE_FALKOR
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "FALKOR"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DFALKOR " \
- "-DL1_CODE_SIZE=49152 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=3 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=2 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "falkor"
- #define CORENAME "FALKOR"
- #endif
-
- #ifdef FORCE_THUNDERX
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "THUNDERX"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DTHUNDERX " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=128 " \
- "-DL2_SIZE=16777216 -DL2_LINESIZE=128 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "thunderx"
- #define CORENAME "THUNDERX"
- #endif
-
- #ifdef FORCE_THUNDERX2T99
- #define ARMV8
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "THUNDERX2T99"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DTHUNDERX2T99 " \
- "-DL1_CODE_SIZE=32768 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=8 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=8 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=8 " \
- "-DL3_SIZE=33554432 -DL3_LINESIZE=64 -DL3_ASSOCIATIVE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "thunderx2t99"
- #define CORENAME "THUNDERX2T99"
- #endif
-
- #ifdef FORCE_TSV110
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "TSV110"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DTSV110 " \
- "-DL1_CODE_SIZE=65536 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=4 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=4 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=8 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "tsv110"
- #define CORENAME "TSV110"
- #endif
-
- #ifdef FORCE_EMAG8180
- #define ARMV8
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "EMAG8180"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DEMAG8180 " \
- "-DL1_CODE_SIZE=32768 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=8 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=8 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=8 " \
- "-DL3_SIZE=33554432 -DL3_LINESIZE=64 -DL3_ASSOCIATIVE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "emag8180"
- #define CORENAME "EMAG8180"
- #endif
-
- #ifdef FORCE_AMPERE1
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "AMPERE1"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DAMPERE1 " \
- "-DL1_CODE_SIZE=16384 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=4 " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=4 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=16 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8 " \
- "-march=armv8.6-a+crypto+crc+fp16+sha3+rng"
- #define LIBNAME "ampere1"
- #define CORENAME "AMPERE1"
- #endif
-
- #ifdef FORCE_THUNDERX3T110
- #define ARMV8
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "THUNDERX3T110"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DTHUNDERX3T110 " \
- "-DL1_CODE_SIZE=65536 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=8 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=8 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=8 " \
- "-DL3_SIZE=94371840 -DL3_LINESIZE=64 -DL3_ASSOCIATIVE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "thunderx3t110"
- #define CORENAME "THUNDERX3T110"
- #endif
-
- #ifdef FORCE_VORTEX
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "VORTEX"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DVORTEX " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "vortex"
- #define CORENAME "VORTEX"
- #endif
-
- #ifdef FORCE_A64FX
- #define ARMV8
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "A64FX"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DA64FX " \
- "-DL1_CODE_SIZE=65536 -DL1_CODE_LINESIZE=256 -DL1_CODE_ASSOCIATIVE=8 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=256 -DL1_DATA_ASSOCIATIVE=8 " \
- "-DL2_SIZE=8388608 -DL2_LINESIZE=256 -DL2_ASSOCIATIVE=8 " \
- "-DL3_SIZE=0 -DL3_LINESIZE=0 -DL3_ASSOCIATIVE=0 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SVE -DARMV8"
- #define LIBNAME "a64fx"
- #define CORENAME "A64FX"
- #endif
-
- #ifdef FORCE_FT2000
- #define ARMV8
- #define FORCE
- #define ARCHITECTURE "ARM64"
- #define SUBARCHITECTURE "FT2000"
- #define SUBDIRNAME "arm64"
- #define ARCHCONFIG "-DFT2000 " \
- "-DL1_CODE_SIZE=32768 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=8 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=8 " \
- "-DL2_SIZE=33554426-DL2_LINESIZE=64 -DL2_ASSOCIATIVE=8 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
- "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
- #define LIBNAME "ft2000"
- #define CORENAME "FT2000"
- #endif
-
- #ifdef FORCE_ZARCH_GENERIC
- #define FORCE
- #define ARCHITECTURE "ZARCH"
- #define SUBARCHITECTURE "ZARCH_GENERIC"
- #define ARCHCONFIG "-DZARCH_GENERIC " \
- "-DDTB_DEFAULT_ENTRIES=64"
- #define LIBNAME "zarch_generic"
- #define CORENAME "ZARCH_GENERIC"
- #endif
-
- #ifdef FORCE_Z13
- #define FORCE
- #define ARCHITECTURE "ZARCH"
- #define SUBARCHITECTURE "Z13"
- #define ARCHCONFIG "-DZ13 " \
- "-DDTB_DEFAULT_ENTRIES=64"
- #define LIBNAME "z13"
- #define CORENAME "Z13"
- #endif
-
- #ifdef FORCE_Z14
- #define FORCE
- #define ARCHITECTURE "ZARCH"
- #define SUBARCHITECTURE "Z14"
- #define ARCHCONFIG "-DZ14 " \
- "-DDTB_DEFAULT_ENTRIES=64"
- #define LIBNAME "z14"
- #define CORENAME "Z14"
- #endif
-
- #ifdef FORCE_EV4
- #define FORCE
- #define ARCHITECTURE "ALPHA"
- #define SUBARCHITECTURE "ev4"
- #define ARCHCONFIG "-DEV4 " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=32 -DDTB_SIZE=8192 "
- #define LIBNAME "ev4"
- #define CORENAME "EV4"
- #endif
-
- #ifdef FORCE_EV5
- #define FORCE
- #define ARCHITECTURE "ALPHA"
- #define SUBARCHITECTURE "ev5"
- #define ARCHCONFIG "-DEV5 " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=2097152 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=8192 "
- #define LIBNAME "ev5"
- #define CORENAME "EV5"
- #endif
-
- #ifdef FORCE_EV6
- #define FORCE
- #define ARCHITECTURE "ALPHA"
- #define SUBARCHITECTURE "ev6"
- #define ARCHCONFIG "-DEV6 " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=4194304 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=8192 "
- #define LIBNAME "ev6"
- #define CORENAME "EV6"
- #endif
-
- #ifdef FORCE_C910V
- #define FORCE
- #define ARCHITECTURE "RISCV64"
- #ifdef NO_RV64GV
- #define SUBARCHITECTURE "RISCV64_GENERIC"
- #define SUBDIRNAME "riscv64"
- #define ARCHCONFIG "-DRISCV64_GENERIC " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "riscv64_generic"
- #define CORENAME "RISCV64_GENERIC"
- #else
- #define SUBARCHITECTURE "C910V"
- #define SUBDIRNAME "riscv64"
- #define ARCHCONFIG "-DC910V " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "c910v"
- #define CORENAME "C910V"
- #endif
- #endif
- #ifdef FORCE_x280
- #define FORCE
- #define ARCHITECTURE "RISCV64"
- #define SUBARCHITECTURE "x280"
- #define SUBDIRNAME "riscv64"
- #define ARCHCONFIG "-Dx280 " \
- "-DL1_DATA_SIZE=64536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "x280"
- #define CORENAME "x280"
- #else
- #endif
-
- #ifdef FORCE_RISCV64_ZVL256B
- #define FORCE
- #define ARCHITECTURE "RISCV64"
- #define SUBARCHITECTURE "RISCV64_ZVL256B"
- #define SUBDIRNAME "riscv64"
- #define ARCHCONFIG "-DRISCV64_ZVL256B " \
- "-DL1_DATA_SIZE=64536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=262144 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "riscv64_zvl256b"
- #define CORENAME "RISCV64_ZVL256B"
- #endif
-
- #ifdef FORCE_RISCV64_ZVL128B
- #define FORCE
- #define ARCHITECTURE "RISCV64"
- #define SUBARCHITECTURE "RISCV64_ZVL128B"
- #define SUBDIRNAME "riscv64"
- #define ARCHCONFIG "-DRISCV64_ZVL128B " \
- "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
- #define LIBNAME "riscv64_zvl128b"
- #define CORENAME "RISCV64_ZVL128B"
- #endif
-
- #if defined(FORCE_E2K) || defined(__e2k__)
- #define FORCE
- #define ARCHITECTURE "E2K"
- #define ARCHCONFIG "-DGENERIC " \
- "-DL1_DATA_SIZE=16384 -DL1_DATA_LINESIZE=64 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=64 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "generic"
- #define CORENAME "generic"
- #endif
-
- #ifdef FORCE_CSKY
- #define FORCE
- #define ARCHITECTURE "CSKY"
- #define SUBARCHITECTURE "CSKY"
- #define SUBDIRNAME "csky"
- #define ARCHCONFIG "-DCSKY" \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "csky"
- #define CORENAME "CSKY"
- #endif
-
- #ifdef FORCE_CK860FV
- #define FORCE
- #define ARCHITECTURE "CSKY"
- #define SUBARCHITECTURE "CK860V"
- #define SUBDIRNAME "csky"
- #define ARCHCONFIG "-DCK860FV " \
- "-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=32 " \
- "-DL2_SIZE=524288 -DL2_LINESIZE=32 " \
- "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 "
- #define LIBNAME "ck860fv"
- #define CORENAME "CK860FV"
- #endif
-
- #ifndef FORCE
-
- #ifdef USER_TARGET
- #error "The TARGET specified on the command line or in Makefile.rule is not supported. Please choose a target from TargetList.txt"
- #endif
-
- #if defined(__powerpc__) || defined(__powerpc) || defined(powerpc) || \
- defined(__PPC__) || defined(PPC) || defined(_POWER) || defined(__POWERPC__)
- #ifndef POWER
- #define POWER
- #endif
- #define OPENBLAS_SUPPORTED
- #endif
-
- #if defined(__zarch__) || defined(__s390x__)
- #define ZARCH
- #include "cpuid_zarch.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef INTEL_AMD
- #include "cpuid_x86.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef __ia64__
- #include "cpuid_ia64.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef __alpha
- #include "cpuid_alpha.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef POWER
- #include "cpuid_power.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef sparc
- #include "cpuid_sparc.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef __mips__
- #ifdef __mips64
- #include "cpuid_mips64.c"
- #else
- #include "cpuid_mips.c"
- #endif
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef __loongarch64
- #include "cpuid_loongarch64.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef __riscv
- #include "cpuid_riscv64.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef __arm__
- #include "cpuid_arm.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifdef __aarch64__
- #include "cpuid_arm64.c"
- #define OPENBLAS_SUPPORTED
- #endif
-
- #ifndef OPENBLAS_SUPPORTED
- #error "This arch/CPU is not supported by OpenBLAS."
- #endif
-
- #else
-
- #endif
-
- static int get_num_cores(void) {
-
- int count;
- #ifdef OS_WINDOWS
- SYSTEM_INFO sysinfo;
- #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__APPLE__)
- int m[2];
- size_t len;
- #endif
-
- #if defined(linux) || defined(__sun__)
- //returns the number of processors which are currently online
- count = sysconf(_SC_NPROCESSORS_CONF);
- if (count <= 0) count = 2;
- return count;
-
- #elif defined(OS_WINDOWS)
-
- GetSystemInfo(&sysinfo);
- return sysinfo.dwNumberOfProcessors;
-
- #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__APPLE__)
- m[0] = CTL_HW;
- m[1] = HW_NCPU;
- len = sizeof(int);
- sysctl(m, 2, &count, &len, NULL, 0);
- if (count <= 0) count = 2;
-
- return count;
-
- #elif defined(_AIX)
- //returns the number of processors which are currently online
- count = sysconf(_SC_NPROCESSORS_ONLN);
- if (count <= 0) count = 2;
-
- return count;
-
- #else
- return 2;
- #endif
- }
-
- int main(int argc, char *argv[]){
-
- #ifdef FORCE
- char buffer[8192], *p, *q;
- int length;
- #endif
-
- if (argc == 1) return 0;
-
- switch (argv[1][0]) {
-
- case '0' : /* for Makefile */
-
- #ifdef FORCE
- printf("CORE=%s\n", CORENAME);
- #else
- #if defined(INTEL_AMD) || defined(POWER) || defined(__mips__) || defined(__arm__) || defined(__aarch64__) || defined(ZARCH) || defined(sparc) || defined(__loongarch__) || defined(__riscv) || defined(__alpha__) || defined(__csky__)
- printf("CORE=%s\n", get_corename());
- #endif
- #endif
-
- #ifdef FORCE
- printf("LIBCORE=%s\n", LIBNAME);
- #else
- printf("LIBCORE=");
- get_libname();
- printf("\n");
- #endif
-
- printf("NUM_CORES=%d\n", get_num_cores());
-
- #if defined(__arm__)
- #if !defined(FORCE)
- fprintf(stderr,"get features!\n");
- get_features();
- #else
- fprintf(stderr,"split archconfig!\n");
- sprintf(buffer, "%s", ARCHCONFIG);
-
- p = &buffer[0];
-
- while (*p) {
- if ((*p == '-') && (*(p + 1) == 'D')) {
- p += 2;
- if (*p != 'H') {
- while( (*p != ' ') && (*p != '-') && (*p != '\0') && (*p != '\n')) {p++; }
- if (*p == '-') continue;
- }
- while ((*p != ' ') && (*p != '\0')) {
-
- if (*p == '=') {
- printf("=");
- p ++;
- while ((*p != ' ') && (*p != '\0')) {
- printf("%c", *p);
- p ++;
- }
- } else {
- printf("%c", *p);
- p ++;
- if ((*p == ' ') || (*p =='\0')) printf("=1\n");
- }
- }
- } else p ++;
- }
- #endif
- #endif
-
-
- #ifdef INTEL_AMD
- #ifndef FORCE
- get_sse();
- #else
-
- sprintf(buffer, "%s", ARCHCONFIG);
-
- p = &buffer[0];
-
- while (*p) {
- if ((*p == '-') && (*(p + 1) == 'D')) {
- p += 2;
-
- while ((*p != ' ') && (*p != '\0')) {
-
- if (*p == '=') {
- printf("=");
- p ++;
- while ((*p != ' ') && (*p != '\0')) {
- printf("%c", *p);
- p ++;
- }
- } else {
- printf("%c", *p);
- p ++;
- if ((*p == ' ') || (*p =='\0')) printf("=1");
- }
- }
-
- printf("\n");
- } else p ++;
- }
- #endif
- #endif
-
- #if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n");
- #elif defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ > 0
- printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n");
- #endif
- #if defined(_CALL_ELF) && (_CALL_ELF == 2)
- printf("ELF_VERSION=2\n");
- #endif
-
- #ifdef MAKE_NB_JOBS
- #if MAKE_NB_JOBS > 0
- printf("MAKEFLAGS += -j %d\n", MAKE_NB_JOBS);
- #else
- // Let make use parent -j argument or -j1 if there
- // is no make parent
- #endif
- #elif NO_PARALLEL_MAKE==1
- printf("MAKEFLAGS += -j 1\n");
- #else
- printf("MAKEFLAGS += -j %d\n", get_num_cores());
- #endif
-
- break;
-
- case '1' : /* For config.h */
- #ifdef FORCE
- sprintf(buffer, "%s -DCORE_%s\n", ARCHCONFIG, CORENAME);
-
- p = &buffer[0];
- while (*p) {
- if ((*p == '-') && (*(p + 1) == 'D')) {
- p += 2;
- printf("#define ");
-
- while ((*p != ' ') && (*p != '\0')) {
-
- if (*p == '=') {
- printf(" ");
- p ++;
- while ((*p != ' ') && (*p != '\0')) {
- printf("%c", *p);
- p ++;
- }
- } else {
- if (*p != '\n')
- printf("%c", *p);
- p ++;
- }
- }
-
- printf("\n");
- } else p ++;
- }
- #else
- get_cpuconfig();
- #endif
-
- #ifdef FORCE
- printf("#define CHAR_CORENAME \"%s\"\n", CORENAME);
- #else
- #if defined(INTEL_AMD) || defined(POWER) || defined(__mips__) || defined(__arm__) || defined(__aarch64__) || defined(ZARCH) || defined(sparc) || defined(__loongarch__) || defined(__riscv) || defined(__csky__)
- printf("#define CHAR_CORENAME \"%s\"\n", get_corename());
- #endif
- #endif
-
- break;
-
- case '2' : /* SMP */
- if (get_num_cores() > 1) printf("SMP=1\n");
- break;
- }
-
- fflush(stdout);
-
- return 0;
- }
-
|