GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BLD: Link SVML FP16 only for latest assembler · numpy/numpy@12d0df7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • numpy/core
    • setup.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎numpy/core/setup.py‎

Copy file name to clipboardExpand all lines: numpy/core/setup.py
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ def can_link_svml():
7878
and "linux" in platform
7979
and sys.maxsize > 2**31)
8080

81+
def can_link_svml_fp16():
82+
"""SVML FP16 requires binutils >= 2.38 for an updated assembler
83+
"""
84+
if can_link_svml():
85+
binutils_ver = os.popen("ld -v").readlines()[0].strip()[-4:]
86+
return float(binutils_ver) >= 2.38
87+
8188
def check_git_submodules():
8289
out = os.popen("git submodule status")
8390
modules = out.readlines()
@@ -1006,6 +1013,8 @@ def generate_umath_doc_header(ext, build_dir):
10061013
# The ordering of names returned by glob is undefined, so we sort
10071014
# to make builds reproducible.
10081015
svml_objs.sort()
1016+
if not can_link_svml_fp16():
1017+
svml_objs = [o for o in svml_objs if not o.endswith('_h_la.s')]
10091018

10101019
config.add_extension('_multiarray_umath',
10111020
sources=multiarray_src + umath_src +

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.