Skip to content
Commits on Source (2)
......@@ -45,7 +45,7 @@ Description: High-performance lib for Bayesian and Maximum Likelihood phylogenet
This package contains development files needed to build against Beagle library.
Package: libhmsbeagle1v5
Architecture: amd64 i386 arm64 armhf
Architecture: amd64 i386 arm64 armhf ppc64el
Depends: ${shlibs:Depends},
${misc:Depends},
beignet-opencl-icd|mesa-opencl-icd|opencl-icd
......
Description: Fix #922776
On ppc64el, altivec.h redefines bool, pixel and vector which can collide with
c++ types.
This altivec.h inclusion is done by opencl in CL/cl_platform.h .
As altivec.h explains, it's possible to undefine those for C++ compatibility in
libhmsbeagle/GPU/GPUInterface.h where we don't need them and where it fails,
while doing that on the right plateform.
Finally, enable libhmsbeagle1v5 on ppc64el.
Author: Frédéric Bonnard <frediz@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: libhmsbeagle/libhmsbeagle/GPU/GPUInterface.h
===================================================================
--- libhmsbeagle.orig/libhmsbeagle/GPU/GPUInterface.h
+++ libhmsbeagle/libhmsbeagle/GPU/GPUInterface.h
@@ -58,6 +58,11 @@
#include <OpenCL/opencl.h>
# else
#include <CL/opencl.h>
+# if defined(__VEC__) && defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__)
+ #undef vector
+ #undef pixel
+ #undef bool
+# endif
# endif
# ifdef BEAGLE_XCODE
#include "libhmsbeagle/GPU/kernels/BeagleOpenCL_kernels_xcode.h"
......@@ -2,3 +2,4 @@ enable_static.patch
# disable_cpu_sse_plugin.patch
gcc-4.7.patch
doxygen_update.patch
fix-922776.patch