You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.arm64 7.1 kB

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
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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. ifneq ($(C_COMPILER), PGI)
  2. ifeq ($(C_COMPILER), CLANG)
  3. ISCLANG=1
  4. endif
  5. ifeq ($(C_COMPILER), FUJITSU)
  6. ISCLANG=1
  7. endif
  8. ifneq (1, $(filter 1,$(GCCVERSIONGT4) $(ISCLANG)))
  9. CCOMMON_OPT += -march=armv8-a
  10. ifneq ($(F_COMPILER), NAG)
  11. FCOMMON_OPT += -march=armv8-a
  12. endif
  13. else
  14. ifeq ($(CORE), ARMV8)
  15. CCOMMON_OPT += -march=armv8-a
  16. ifneq ($(F_COMPILER), NAG)
  17. FCOMMON_OPT += -march=armv8-a
  18. endif
  19. endif
  20. ifeq ($(CORE), ARMV8SVE)
  21. CCOMMON_OPT += -march=armv8-a+sve
  22. ifneq ($(F_COMPILER), NAG)
  23. FCOMMON_OPT += -march=armv8-a+sve
  24. endif
  25. endif
  26. ifeq ($(CORE), CORTEXA53)
  27. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a53
  28. ifneq ($(F_COMPILER), NAG)
  29. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a53
  30. endif
  31. endif
  32. ifeq ($(CORE), CORTEXA57)
  33. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a57
  34. ifneq ($(F_COMPILER), NAG)
  35. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a57
  36. endif
  37. endif
  38. ifeq ($(CORE), CORTEXA72)
  39. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  40. ifneq ($(F_COMPILER), NAG)
  41. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  42. endif
  43. endif
  44. ifeq ($(CORE), CORTEXA73)
  45. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a73
  46. ifneq ($(F_COMPILER), NAG)
  47. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a73
  48. endif
  49. endif
  50. ifeq ($(CORE), FT2000)
  51. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  52. ifneq ($(F_COMPILER), NAG)
  53. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  54. endif
  55. endif
  56. # Use a72 tunings because Neoverse-N1 is only available
  57. # in GCC>=9
  58. ifeq ($(CORE), NEOVERSEN1)
  59. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ7) $(ISCLANG)))
  60. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ9) $(ISCLANG)))
  61. CCOMMON_OPT += -march=armv8.2-a -mtune=neoverse-n1
  62. ifneq ($(F_COMPILER), NAG)
  63. FCOMMON_OPT += -march=armv8.2-a -mtune=neoverse-n1
  64. endif
  65. else
  66. CCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
  67. ifneq ($(F_COMPILER), NAG)
  68. FCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
  69. endif
  70. endif
  71. else
  72. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  73. ifneq ($(F_COMPILER), NAG)
  74. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  75. endif
  76. endif
  77. endif
  78. # Use a72 tunings because Neoverse-V1 is only available
  79. # in GCC>=10.4
  80. ifeq ($(CORE), NEOVERSEV1)
  81. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ7) $(ISCLANG)))
  82. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ10) $(ISCLANG)))
  83. ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ4) $(GCCVERSIONGTEQ11) $(ISCLANG)))
  84. CCOMMON_OPT += -march=armv8.4-a+sve
  85. ifeq (1, $(ISCLANG))
  86. CCOMMON_OPT += -mtune=cortex-x1
  87. else
  88. CCOMMON_OPT += -mtune=neoverse-v1
  89. endif
  90. ifneq ($(F_COMPILER), NAG)
  91. FCOMMON_OPT += -march=armv8.4-a -mtune=neoverse-v1
  92. endif
  93. else
  94. CCOMMON_OPT += -march=armv8.4-a+sve -mtune=native
  95. ifneq ($(F_COMPILER), NAG)
  96. FCOMMON_OPT += -march=armv8.4-a -mtune=native
  97. endif
  98. endif
  99. else
  100. CCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
  101. ifneq ($(F_COMPILER), NAG)
  102. FCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
  103. endif
  104. endif
  105. else
  106. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  107. ifneq ($(F_COMPILER), NAG)
  108. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  109. endif
  110. endif
  111. endif
  112. # Use a72 tunings because Neoverse-N2 is only available
  113. # in GCC>=10.4
  114. ifeq ($(CORE), NEOVERSEN2)
  115. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ7) $(ISCLANG)))
  116. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ10) $(ISCLANG)))
  117. ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ4) $(GCCVERSIONGTEQ11) $(ISCLANG)))
  118. ifneq ($(OSNAME), Darwin)
  119. CCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2
  120. else
  121. CCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
  122. endif
  123. ifneq ($(F_COMPILER), NAG)
  124. FCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2
  125. endif
  126. else
  127. CCOMMON_OPT += -march=armv8.5-a+sve -mtune=native
  128. ifneq ($(F_COMPILER), NAG)
  129. FCOMMON_OPT += -march=armv8.5-a -mtune=native
  130. endif
  131. endif
  132. else
  133. CCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
  134. ifneq ($(F_COMPILER), NAG)
  135. FCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
  136. endif
  137. endif
  138. else
  139. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  140. ifneq ($(F_COMPILER), NAG)
  141. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
  142. endif
  143. endif
  144. endif
  145. # Use a53 tunings because a55 is only available in GCC>=8.1
  146. ifeq ($(CORE), CORTEXA55)
  147. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ7) $(ISCLANG)))
  148. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ8) $(ISCLANG)))
  149. CCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a55
  150. ifneq ($(F_COMPILER), NAG)
  151. FCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a55
  152. endif
  153. else
  154. CCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a53
  155. ifneq ($(F_COMPILER), NAG)
  156. FCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a53
  157. endif
  158. endif
  159. else
  160. CCOMMON_OPT += -march=armv8-a -mtune=cortex-a53
  161. ifneq ($(F_COMPILER), NAG)
  162. FCOMMON_OPT += -march=armv8-a -mtune=cortex-a53
  163. endif
  164. endif
  165. endif
  166. ifeq ($(CORE), THUNDERX)
  167. CCOMMON_OPT += -march=armv8-a -mtune=thunderx
  168. ifneq ($(F_COMPILER), NAG)
  169. FCOMMON_OPT += -march=armv8-a -mtune=thunderx
  170. endif
  171. endif
  172. ifeq ($(CORE), FALKOR)
  173. CCOMMON_OPT += -march=armv8-a -mtune=falkor
  174. ifneq ($(F_COMPILER), NAG)
  175. FCOMMON_OPT += -march=armv8-a -mtune=falkor
  176. endif
  177. endif
  178. ifeq ($(CORE), THUNDERX2T99)
  179. CCOMMON_OPT += -march=armv8.1-a -mtune=thunderx2t99
  180. ifneq ($(F_COMPILER), NAG)
  181. FCOMMON_OPT += -march=armv8.1-a -mtune=thunderx2t99
  182. endif
  183. endif
  184. ifeq ($(CORE), THUNDERX3T110)
  185. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ10) $(ISCLANG)))
  186. CCOMMON_OPT += -march=armv8.3-a
  187. ifeq (0, $(ISCLANG))
  188. CCOMMON_OPT += -mtune=thunderx3t110
  189. else
  190. CCOMMON_OPT += -mtune=thunderx2t99
  191. endif
  192. ifneq ($(F_COMPILER), NAG)
  193. FCOMMON_OPT += -march=armv8.3-a -mtune=thunderx3t110
  194. endif
  195. else
  196. CCOMMON_OPT += -march=armv8.1-a -mtune=thunderx2t99
  197. ifneq ($(F_COMPILER), NAG)
  198. FCOMMON_OPT += -march=armv8.1-a -mtune=thunderx2t99
  199. endif
  200. endif
  201. endif
  202. ifeq ($(CORE), VORTEX)
  203. CCOMMON_OPT += -march=armv8.3-a
  204. ifneq ($(F_COMPILER), NAG)
  205. FCOMMON_OPT += -march=armv8.3-a
  206. endif
  207. endif
  208. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ9) $(ISCLANG)))
  209. ifeq ($(CORE), TSV110)
  210. CCOMMON_OPT += -march=armv8.2-a -mtune=tsv110
  211. ifneq ($(F_COMPILER), NAG)
  212. FCOMMON_OPT += -march=armv8.2-a -mtune=tsv110
  213. endif
  214. endif
  215. endif
  216. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ9) $(ISCLANG)))
  217. ifeq ($(CORE), EMAG8180)
  218. CCOMMON_OPT += -march=armv8-a
  219. ifeq ($(ISCLANG), 0)
  220. CCOMMON_OPT += -mtune=emag
  221. endif
  222. ifneq ($(F_COMPILER), NAG)
  223. FCOMMON_OPT += -march=armv8-a -mtune=emag
  224. endif
  225. endif
  226. endif
  227. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
  228. ifeq ($(CORE), A64FX)
  229. CCOMMON_OPT += -march=armv8.2-a+sve -mtune=a64fx
  230. ifneq ($(F_COMPILER), NAG)
  231. FCOMMON_OPT += -march=armv8.2-a+sve -mtune=a64fx
  232. endif
  233. endif
  234. endif
  235. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
  236. ifeq ($(CORE), CORTEXX1)
  237. CCOMMON_OPT += -march=armv8.2-a -mtune=cortexa72
  238. ifneq ($(F_COMPILER), NAG)
  239. FCOMMON_OPT += -march=armv8.2-a -mtune=cortexa72
  240. endif
  241. endif
  242. endif
  243. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
  244. ifeq ($(CORE), CORTEXX2)
  245. CCOMMON_OPT += -march=armv8.4-a+sve
  246. ifneq ($(F_COMPILER), NAG)
  247. FCOMMON_OPT += -march=armv8.4-a+sve
  248. endif
  249. endif
  250. endif
  251. #ifeq (1, $(filter 1,$(ISCLANG)))
  252. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
  253. ifeq ($(CORE), CORTEXA510)
  254. CCOMMON_OPT += -march=armv8.4-a+sve
  255. ifneq ($(F_COMPILER), NAG)
  256. FCOMMON_OPT += -march=armv8.4-a+sve
  257. endif
  258. endif
  259. endif
  260. ifeq (1, $(filter 1,$(GCCVERSIONGTEQ11) $(ISCLANG)))
  261. ifeq ($(CORE), CORTEXA710)
  262. CCOMMON_OPT += -march=armv8.4-a+sve
  263. ifneq ($(F_COMPILER), NAG)
  264. FCOMMON_OPT += -march=armv8.4-a+sve
  265. endif
  266. endif
  267. endif
  268. endif
  269. endif