From 2212963a8a617f3bcb63b657b07fe1f3ec9f39b7e32b0c4ad8a6d730755dfed0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 May 2023 15:24:30 +0000 Subject: [PATCH 1/4] - update to 0.13.1: * Bump xsimd dependency to 11.0.0, with a backported patch. * Improve performance of functions revieving scalar arguments. This changes the internal function call API. * Improve performance of fix-stride slicing, using a new slice representation. * Improve numpy.copyto performance, and detect copyto pattern usage. * Force internal linkage of generated functions, which gives more optimization room to the C++ compiler. * Provide entry points pythran.import_pythrancode and pythran.import_pythranfile, as a poor man JIT option. * Optimize numpy.argmax(cst * val) into numpy.argmax(val) when cst is positive. * Avoid copies upon numpy.array_split * Get rid of unused functions C++ warnings * Avoid generating a loop footer when the loop index is not used outside of the loop. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=18 --- python-pythran.changes | 21 +++++++++++++++++++++ python-pythran.spec | 2 +- pythran-0.12.1-gh.tar.gz | 3 --- pythran-0.13.1-gh.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 4 deletions(-) delete mode 100644 pythran-0.12.1-gh.tar.gz create mode 100644 pythran-0.13.1-gh.tar.gz diff --git a/python-pythran.changes b/python-pythran.changes index 9df2350..546b964 100644 --- a/python-pythran.changes +++ b/python-pythran.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Mon May 15 15:19:41 UTC 2023 - Dirk Müller + +- update to 0.13.1: + * Bump xsimd dependency to 11.0.0, with a backported patch. + * Improve performance of functions revieving scalar arguments. + This changes the internal function call API. + * Improve performance of fix-stride slicing, using a new slice + representation. + * Improve numpy.copyto performance, and detect copyto pattern usage. + * Force internal linkage of generated functions, which gives more + optimization room to the C++ compiler. + * Provide entry points pythran.import_pythrancode and + pythran.import_pythranfile, as a poor man JIT option. + * Optimize numpy.argmax(cst * val) into numpy.argmax(val) when cst is + positive. + * Avoid copies upon numpy.array_split + * Get rid of unused functions C++ warnings + * Avoid generating a loop footer when the loop index is not used + outside of the loop. + ------------------------------------------------------------------- Wed Jan 25 10:22:53 UTC 2023 - Dirk Müller diff --git a/python-pythran.spec b/python-pythran.spec index fc18da0..9be9672 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -45,7 +45,7 @@ ExclusiveArch: x86_64 %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-pythran%{psuffix} -Version: 0.12.1 +Version: 0.13.1 Release: 0 Summary: Ahead of Time compiler for numeric kernels License: BSD-3-Clause diff --git a/pythran-0.12.1-gh.tar.gz b/pythran-0.12.1-gh.tar.gz deleted file mode 100644 index 61a4486..0000000 --- a/pythran-0.12.1-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6aef4ca34eb4823c25aa52a8b8a6467a6b6f163bb52d9db8f1e20a2d62fc7e93 -size 3631063 diff --git a/pythran-0.13.1-gh.tar.gz b/pythran-0.13.1-gh.tar.gz new file mode 100644 index 0000000..135e785 --- /dev/null +++ b/pythran-0.13.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0328a848bfa5aead55449c0b7de42cebb88ad8c1a3db9d2e3e6a56194b995599 +size 3639196 From 4fed4eb6feba64d661119f9c7388bf232112fd10de707e25dfc37b3bc772995c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 May 2023 15:25:06 +0000 Subject: [PATCH 2/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=19 --- _multibuild | 1 + 1 file changed, 1 insertion(+) diff --git a/_multibuild b/_multibuild index 73ab5e8..8954e54 100644 --- a/_multibuild +++ b/_multibuild @@ -2,4 +2,5 @@ test-py38 test-py39 test-py310 + test-py311 From cbb6e21bc1383e24f5073f9f2530af40effb3ce7b8b58dbe73de3b452f18547e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 May 2023 15:49:14 +0000 Subject: [PATCH 3/4] - fix the test-flavor splitting for python311 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=20 --- python-pythran.changes | 1 + python-pythran.spec | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/python-pythran.changes b/python-pythran.changes index 546b964..aa7cced 100644 --- a/python-pythran.changes +++ b/python-pythran.changes @@ -18,6 +18,7 @@ Mon May 15 15:19:41 UTC 2023 - Dirk Müller * Get rid of unused functions C++ warnings * Avoid generating a loop footer when the loop index is not used outside of the loop. +- fix the test-flavor splitting for python311 ------------------------------------------------------------------- Wed Jan 25 10:22:53 UTC 2023 - Dirk Müller diff --git a/python-pythran.spec b/python-pythran.spec index 9be9672..ff7489b 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -21,6 +21,7 @@ %define psuffix -test-py38 %define skip_python39 1 %define skip_python310 1 +%define skip_python311 1 %bcond_without test ExclusiveArch: x86_64 %endif @@ -28,6 +29,7 @@ ExclusiveArch: x86_64 %define psuffix -test-py39 %define skip_python38 1 %define skip_python310 1 +%define skip_python311 1 %bcond_without test ExclusiveArch: x86_64 %endif @@ -35,6 +37,15 @@ ExclusiveArch: x86_64 %define psuffix -test-py310 %define skip_python38 1 %define skip_python39 1 +%define skip_python311 1 +%bcond_without test +ExclusiveArch: x86_64 +%endif +%if "%{flavor}" == "test-py311" +%define psuffix -test-py311 +%define skip_python38 1 +%define skip_python39 1 +%define skip_python310 1 %bcond_without test ExclusiveArch: x86_64 %endif @@ -129,7 +140,7 @@ export CFLAGS="%{optflags}" donttest="test_operator_intersection" # gh#serge-sans-paille/pythran#2044 NOT FIXED by gh#serge-sans-paille/pythran#2046 donttest="$donttest or test_toolchain or test_cli" -%pytest -n auto -k "not ($donttest)" -m "not module" +%pytest %{?jobs:-n %jobs} -k "not ($donttest)" -m "not module" %endif %if !%{with test} From e5871db16d21fc7daabe30157a3a9cce5a33c4f2306d2b099d77d45537140693 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 May 2023 16:13:49 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=21 --- _multibuild | 1 - python-pythran.spec | 17 +++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/_multibuild b/_multibuild index 8954e54..8cf2769 100644 --- a/_multibuild +++ b/_multibuild @@ -1,5 +1,4 @@ - test-py38 test-py39 test-py310 test-py311 diff --git a/python-pythran.spec b/python-pythran.spec index ff7489b..ca1a173 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -17,41 +17,30 @@ %global flavor @BUILD_FLAVOR@%{nil} -%if "%{flavor}" == "test-py38" -%define psuffix -test-py38 -%define skip_python39 1 -%define skip_python310 1 -%define skip_python311 1 -%bcond_without test -ExclusiveArch: x86_64 -%endif %if "%{flavor}" == "test-py39" %define psuffix -test-py39 %define skip_python38 1 %define skip_python310 1 %define skip_python311 1 -%bcond_without test -ExclusiveArch: x86_64 %endif %if "%{flavor}" == "test-py310" %define psuffix -test-py310 %define skip_python38 1 %define skip_python39 1 %define skip_python311 1 -%bcond_without test -ExclusiveArch: x86_64 %endif %if "%{flavor}" == "test-py311" %define psuffix -test-py311 %define skip_python38 1 %define skip_python39 1 %define skip_python310 1 -%bcond_without test -ExclusiveArch: x86_64 %endif %if "%{flavor}" == "" %define psuffix %{nil} %bcond_with test +%else +%bcond_without test +ExclusiveArch: x86_64 %endif %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1