8000 BLD, BUG: Fix detecting aarch64 on macOS by seiko2plus · Pull Request #18001 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BLD, BUG: Fix detecting aarch64 on macOS #18001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 23, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
BLD, MAINT: add platform info to the final optimization report
  • Loading branch information
seiko2plus committed Dec 20, 2020
commit 3944f409884b50c3cb0cf101b54e622e6125a850
22 changes: 12 additions & 10 deletions numpy/distutils/ccompiler_opt.py
< 3895 /tbody>
Original file line number Diff line number Diff line change
Expand Up @@ -2300,19 +2300,25 @@ def generate_dispatch_header(self, header_path):

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)))

Expand All @@ -2333,11 +2339,7 @@ def report(self, full=False):

########## 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)))

Expand Down
0