Commit bc41423
authored
healpy: Add version 1.20.0 (#2430)
* healpy: Add version 1.20.0
Build riscv64 wheels for healpy, the Cython wrapper around the
bundled/vendored cfitsio and HEALPix C++ (incl. libsharp) libraries.
Upstream publishes no riscv64 wheel anywhere.
Mirrors upstream's cibuildwheel.yml, narrowed to Linux/riscv64.
* healpy: work around riscv64 libgomp fault in libsharp's OpenMP loops
The cp314 leg of PR #2430 (run 36393265628, job 108833715006)
segfaulted inside libgomp during test_sphtfunc.py::test_map2alm_pol
("Fatal Python error: Segmentation fault", exit 139), with the C
stack trace going healpy._sphtools -> libgomp -> libsharp -> libgomp
-> libc. cp313 on the same commit built and tested clean.
That signature matches gotcha 166 (riscv64 runners' libgomp faulting
on dynamic/guided OpenMP schedules) exactly. cextern/healpix vendors
libsharp, whose SHT execution path (sharp.c's map2phase/phase2map/
sharp_execute_job) and Gauss-Legendre root finder
(sharp_legendre_roots.c) all use schedule(dynamic,*); sharp_mpi.c's
own instance is dead code here (behind #ifdef USE_MPI, never defined
by this build). Patch 0002 moves those four loops to schedule(static),
mirroring the existing lightgbm/4.7.0/0002 patch for the same defect,
tagged Upstream-Status: Inappropriate with the tracking issue
(#617).
* healpy: use schedule(static) for dist2holes's dynamic OpenMP loops
CI's cp313 leg segfaulted in test_dist2holes_no_hole_filter (PR #2430,
run 36412601673) on hp.dist2holes(mask), a different crash than the
one 0002 already fixes. The C++ dist2holes() (mask_tools.cc) and the
swap_scheme() it calls on RING masks (healpix_map.h) each contain
OpenMP loops using dynamic scheduling, matching gotcha 166's libgomp
signature again, this time in HEALPix C++ rather than libsharp.
* healpy: pin setuptools_scm version to avoid dirty-tree dev suffix
The OpenMP fix patches are applied with a plain `git apply`, which
leaves the checkout dirty at the 1.20.0 tag. setuptools_scm then
reports the dirty tree as a post-release dev version
(1.20.1.dev0+g<sha>.d<date>) instead of 1.20.0, which the publish
step correctly rejects since it doesn't match docs/packages/healpy.yaml.
Set SETUPTOOLS_SCM_PRETEND_VERSION_FOR_HEALPY in CIBW_ENVIRONMENT,
matching the established pattern used by every other package in this
repo that patches a setuptools_scm checkout (gotcha 31).1 parent 978b9e3 commit bc41423
5 files changed
Lines changed: 1143 additions & 0 deletions
File tree
- .github/workflows
- docs/packages
- patches/healpy/1.20.0
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments