Skip to content

Commit

Permalink
Merge pull request #21949 from charris/backport-21896
Browse files Browse the repository at this point in the history
BLD: Make can_link_svml return False for 32bit builds on x86_64
  • Loading branch information
charris committed Jul 8, 2022
2 parents 3111958 + 8ccaa24 commit 84c1841
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions numpy/core/setup.py
@@ -1,9 +1,9 @@
import os
import sys
import sysconfig
import pickle
import copy
import warnings
import platform
import textwrap
import glob
from os.path import join
Expand Down Expand Up @@ -79,9 +79,10 @@ def can_link_svml():
"""
if NPY_DISABLE_SVML:
return False
machine = platform.machine()
system = platform.system()
return "x86_64" in machine and system == "Linux"
platform = sysconfig.get_platform()
return ("x86_64" in platform
and "linux" in platform
and sys.maxsize > 2**31)

def check_svml_submodule(svmlpath):
if not os.path.exists(svmlpath + "/README.md"):
Expand Down

0 comments on commit 84c1841

Please sign in to comment.