1
0
python-openTSNE/python-openTSNE-disable-CPU-autodetection.patch
Dirk Mueller 0cd0a9c3dc - update to 1.0.1:
* setup.py maintenance
  * drop Python 3.6 support
  * correctly implement dof parameter in exact BH implementation
- drop get-numpy-include.patch (upstream)
  * Given the longtime stability of openTSNE, it is only fitting

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-openTSNE?expand=0&rev=10
2024-03-22 20:55:20 +00:00

27 lines
1.1 KiB
Diff

Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2021-04-01
Do not build code using instructions because they are available on a random build worker.
Instead we pin the CPU type to a reasonable compromise
to allow people to run it on >50% of systems,
but also to use CPU instructions available since 10+ years
to speed up processing.
Index: openTSNE-1.0.1/setup.py
===================================================================
--- openTSNE-1.0.1.orig/setup.py
+++ openTSNE-1.0.1/setup.py
@@ -155,9 +155,9 @@ class CythonBuildExt(build_ext):
# package is being built locally, this is desired
if not ("AZURE_BUILD" in os.environ or "CONDA_BUILD" in os.environ):
if platform.machine() == "ppc64le":
- extra_compile_args += ["-mcpu=native"]
+ extra_compile_args += ["-mcpu=power8"]
if platform.machine() == "x86_64":
- extra_compile_args += ["-march=native"]
+ extra_compile_args += ["-march=corei7"]
# We will disable openmp flags if the compiler doesn't support it. This
# is only really an issue with OSX clang