MCPcopy Create free account
hub / github.com/numpy/numpy / can_link_svml_fp16

Function can_link_svml_fp16

numpy/core/setup.py:82–92  ·  view source on GitHub ↗

SVML FP16 requires binutils >= 2.38 for an updated assembler

()

Source from the content-addressed store, hash-verified

80 and sys.maxsize > 2**31)
81
82def can_link_svml_fp16():
83 """SVML FP16 requires binutils >= 2.38 for an updated assembler
84 """
85 if can_link_svml():
86 import re
87 binutils_ver = os.popen("ld -v").readlines()[0].strip()
88 binutils_ver = re.search(r"\d\.\d\d", binutils_ver)
89 if binutils_ver is not None:
90 return float(binutils_ver.group()) >= 2.38
91 else:
92 return False
93
94def check_git_submodules():
95 out = os.popen("git submodule status")

Callers 1

configurationFunction · 0.85

Calls 2

can_link_svmlFunction · 0.85
stripMethod · 0.80

Tested by

no test coverage detected