summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSayed Adel <seiko@imavr.com>2021-12-14 04:16:48 +0200
committerSayed Adel <seiko@imavr.com>2021-12-14 16:35:34 +0200
commit57628078ef81632f11d22a8fbe84e3a9a85ff748 (patch)
treefacbbe9c4b7d24f02fcd8c10878e86d5d612ae75
parent46628c2e7a6e9fccf5d768276d58de31757ab681 (diff)
downloadnumpy-57628078ef81632f11d22a8fbe84e3a9a85ff748.tar.gz
DOC: update SIMD build options to cover s390x features
-rw-r--r--doc/source/reference/simd/build-options.rst3
-rw-r--r--doc/source/reference/simd/gen_features.py6
-rw-r--r--doc/source/reference/simd/generated_tables/cpu_features.inc15
3 files changed, 20 insertions, 4 deletions
diff --git a/doc/source/reference/simd/build-options.rst b/doc/source/reference/simd/build-options.rst
index 80ef2c639..0a40d3ff5 100644
--- a/doc/source/reference/simd/build-options.rst
+++ b/doc/source/reference/simd/build-options.rst
@@ -165,6 +165,7 @@ Special Options
ARMHF ``NONE``
ARM64 A.K. AARCH64 ``NEON`` ``NEON_FP16`` ``NEON_VFPV4``
``ASIMD``
+ IBM/ZSYSTEM(S390X) ``NONE``
====================================== =======================================
- ``MAX``: Enables all supported CPU features by the compiler and platform.
@@ -338,7 +339,7 @@ that includes several sections, and each section has several values, representin
**Platform**:
- :enabled:`Architecture`: The architecture name of target CPU. It should be one of
- ``x86``, ``x64``, ``ppc64``, ``ppc64le``, ``armhf``, ``aarch64`` or ``unknown``.
+ ``x86``, ``x64``, ``ppc64``, ``ppc64le``, ``armhf``, ``aarch64``, ``s390x`` or ``unknown``.
- :enabled:`Compiler`: The compiler name. It should be one of
gcc, clang, msvc, icc, iccw or unix-like.
diff --git a/doc/source/reference/simd/gen_features.py b/doc/source/reference/simd/gen_features.py
index d74d54016..9a38ef5c9 100644
--- a/doc/source/reference/simd/gen_features.py
+++ b/doc/source/reference/simd/gen_features.py
@@ -158,6 +158,7 @@ if __name__ == '__main__':
pretty_names = {
"PPC64": "IBM/POWER big-endian",
"PPC64LE": "IBM/POWER little-endian",
+ "S390X": "IBM/ZSYSTEM(S390X)",
"ARMHF": "ARMv7/A32",
"AARCH64": "ARMv8/A64",
"ICC": "Intel Compiler",
@@ -170,7 +171,7 @@ if __name__ == '__main__':
with open(path.join(gen_path, 'cpu_features.inc'), 'wt') as fd:
fd.write(f'.. generated via {__file__}\n\n')
for arch in (
- ("x86", "PPC64", "PPC64LE", "ARMHF", "AARCH64")
+ ("x86", "PPC64", "PPC64LE", "ARMHF", "AARCH64", "S390X")
):
title = "On " + pretty_names.get(arch, arch)
table = Features(arch, 'gcc').table()
@@ -183,7 +184,8 @@ if __name__ == '__main__':
("PPC64", ("clang",)),
("PPC64LE", ("clang",)),
("ARMHF", ("clang",)),
- ("AARCH64", ("clang",))
+ ("AARCH64", ("clang",)),
+ ("S390X", ("clang",))
):
arch_pname = pretty_names.get(arch, arch)
for cc in cc_names:
diff --git a/doc/source/reference/simd/generated_tables/cpu_features.inc b/doc/source/reference/simd/generated_tables/cpu_features.inc
index a7eae5652..17d1b4951 100644
--- a/doc/source/reference/simd/generated_tables/cpu_features.inc
+++ b/doc/source/reference/simd/generated_tables/cpu_features.inc
@@ -1,4 +1,4 @@
-.. generated via /home/seiko/work/repos/numpy/doc/source/reference/simd/./gen_features.py
+.. generated via /home/seiko/work/repos/review/numpy/doc/source/reference/simd/gen_features.py
On x86
~~~~~~
@@ -91,3 +91,16 @@ On ARMv8/A64
``ASIMDFHM`` ``NEON`` ``NEON_FP16`` ``NEON_VFPV4`` ``ASIMD`` ``ASIMDHP``
============== ===========================================================
+On IBM/ZSYSTEM(S390X)
+~~~~~~~~~~~~~~~~~~~~~
+.. table::
+ :align: left
+
+ ======== ==============
+ Name Implies
+ ======== ==============
+ ``VX``
+ ``VXE`` ``VX``
+ ``VXE2`` ``VX`` ``VXE``
+ ======== ==============
+