diff options
author | Sayed Adel <seiko@imavr.com> | 2020-12-20 02:05:29 +0000 |
---|---|---|
committer | Sayed Adel <seiko@imavr.com> | 2020-12-20 19:20:30 +0000 |
commit | 3944f409884b50c3cb0cf101b54e622e6125a850 (patch) | |
tree | f8569e64c57663a3055f1478313a6a5911c4736d | |
parent | c5539458a06e79af6b3a96134de39336f44aa1a8 (diff) | |
download | numpy-3944f409884b50c3cb0cf101b54e622e6125a850.tar.gz |
BLD, MAINT: add platform info to the final optimization report
-rw-r--r-- | numpy/distutils/ccompiler_opt.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py index 0e0219609..f695ebb92 100644 --- a/numpy/distutils/ccompiler_opt.py +++ b/numpy/distutils/ccompiler_opt.py @@ -2300,19 +2300,25 @@ class CCompilerOpt(_Config, _Distutils, _Cache, _CCompiler, _Feature, _Parse): def report(self, full=False): report = [] + platform_rows = [] baseline_rows = [] dispatch_rows = [] + report.append(("Platform", platform_rows)) + report.append(("", "")) report.append(("CPU baseline", baseline_rows)) report.append(("", "")) report.append(("CPU dispatch", dispatch_rows)) + ########## platform ########## + platform_rows.append(("Architecture", ( + "unsupported" if self.cc_on_noarch else self.cc_march) + )) + platform_rows.append(("Compiler", ( + "unix-like" if self.cc_is_nocc else self.cc_name) + )) ########## baseline ########## if self.cc_noopt: - baseline_rows.append(( - "Requested", "optimization disabled %s" % ( - "(unsupported arch)" if self.cc_on_noarch else "" - ) - )) + baseline_rows.append(("Requested", "optimization disabled")) else: baseline_rows.append(("Requested", repr(self._requested_baseline))) @@ -2333,11 +2339,7 @@ class CCompilerOpt(_Config, _Distutils, _Cache, _CCompiler, _Feature, _Parse): ########## dispatch ########## if self.cc_noopt: - dispatch_rows.append(( - "Requested", "optimization disabled %s" % ( - "(unsupported arch)" if self.cc_on_noarch else "" - ) - )) + baseline_rows.append(("Requested", "optimization disabled")) else: dispatch_rows.append(("Requested", repr(self._requested_dispatch))) |