void-packages/srcpkgs/darktable/patches/fix-omp-aarch64.patch
Jürgen Buchmüller de4e53f5ab darktable: work around omp bug w/ aarch64
Do not use OMP in the function process_lch_xtrans in src/iop/highlights.c
if the architecture is aarch64. Otherwise the build fails with:
src/iop/highlights.c:700:17: error: '*.LC2' not specified in enclosing 'parallel'
2019-12-09 11:12:15 +01:00

18 lines
731 B
Diff

--- src/iop/highlights.c 2019-10-20 14:39:07.000000000 +0200
+++ src/iop/highlights.c 2019-12-09 11:09:14.468776742 +0100
@@ -625,12 +625,14 @@
const dt_iop_roi_t *const roi_out, const float clip)
{
const uint8_t(*const xtrans)[6] = (const uint8_t(*const)[6])piece->pipe->dsc.xtrans;
-
+/* fails for aarch64 with: highlights.c:700:17: error: '*.LC2' not specified in enclosing 'parallel' */
+#if !defined(__aarch64__)
#ifdef _OPENMP
#pragma omp parallel for default(none) \
dt_omp_firstprivate(clip, ivoid, ovoid, roi_in, roi_out, xtrans) \
schedule(dynamic)
#endif
+#endif
for(int j = 0; j < roi_out->height; j++)
{
float *out = (float *)ovoid + (size_t)roi_out->width * j;