diff options
author | Sayed Adel <seiko@imavr.com> | 2021-01-02 08:30:46 +0200 |
---|---|---|
committer | Sayed Adel <seiko@imavr.com> | 2021-01-03 05:36:41 +0000 |
commit | ce6cd579d4accd81edfd96fd8b7923455d5a9e61 (patch) | |
tree | 1c40300ddcad1deb517e8cd5f264c9dcb30f594c | |
parent | caec7f21ce3ca2672e93781a379734295c00debe (diff) | |
download | numpy-ce6cd579d4accd81edfd96fd8b7923455d5a9e61.tar.gz |
MAINT, BLD: few tweaks in the comments and log message
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Co-authored-by: h-vetinari <h.vetinari@gmx.com>
Co-authored-by: Derek Homeier <dhomeie@gwdg.de>
-rw-r--r-- | numpy/core/src/common/npy_cpu_dispatch.h | 4 | ||||
-rw-r--r-- | numpy/distutils/ccompiler_opt.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/src/common/npy_cpu_dispatch.h b/numpy/core/src/common/npy_cpu_dispatch.h index f69fd2b2e..c8411104a 100644 --- a/numpy/core/src/common/npy_cpu_dispatch.h +++ b/numpy/core/src/common/npy_cpu_dispatch.h @@ -7,10 +7,10 @@ #include "npy_cpu_features.h" // NPY_CPU_HAVE #include "numpy/utils.h" // NPY_EXPAND, NPY_CAT /** - * Bringing the main configration header 'npy_cpu_dispatch_config.h'. + * Including the main configuration header 'npy_cpu_dispatch_config.h'. * * This header is generated by the distutils module 'ccompiler_opt', - * and contains all the #definitions and headers of instruction-sets, + * and contains all the #definitions and headers for platform-specific instruction-sets * that had been configured through command arguments '--cpu-baseline' and '--cpu-dispatch'. * * It also contains extra C #definitions and macros that are used for implementing diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py index 39c08d36b..5fa17b2ee 100644 --- a/numpy/distutils/ccompiler_opt.py +++ b/numpy/distutils/ccompiler_opt.py @@ -2225,8 +2225,8 @@ class CCompilerOpt(_Config, _Distutils, _Cache, _CCompiler, _Feature, _Parse): def generate_dispatch_header(self, header_path): """ - Generate the dispatch header which containing all definitions - and headers of instruction-sets for the enabled CPU baseline and + Generate the dispatch header which contains the #definitions and headers + for platform-specific instruction-sets for the enabled CPU baseline and dispatch-able features. Its highly recommended to take a look at the generated header @@ -2243,7 +2243,7 @@ class CCompilerOpt(_Config, _Distutils, _Cache, _CCompiler, _Feature, _Parse): header_dir = os.path.dirname(header_path) if not os.path.exists(header_dir): self.dist_log( - f"dispatch header dir {header_dir} isn't exist, creating it", + f"dispatch header dir {header_dir} does not exist, creating it", stderr=True ) os.makedirs(header_dir) @@ -2515,7 +2515,7 @@ class CCompilerOpt(_Config, _Distutils, _Cache, _CCompiler, _Feature, _Parse): def new_ccompiler_opt(compiler, dispatch_hpath, **kwargs): """ Create a new instance of 'CCompilerOpt' and generate the dispatch header - which containing all definitions and headers of instruction-sets for + which contains the #definitions and headers of platform-specific instruction-sets for the enabled CPU baseline and dispatch-able features. Parameters |