mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
opencl-headers: backport altivec fix
This commit is contained in:
parent
f51a0c5327
commit
2952416377
2 changed files with 37 additions and 1 deletions
36
srcpkgs/opencl-headers/patches/altivec-vector.patch
Normal file
36
srcpkgs/opencl-headers/patches/altivec-vector.patch
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
From 1da98fd0ced4cb50f859725d5a8dc5e2633f9343 Mon Sep 17 00:00:00 2001
|
||||||
|
From: James Price <j.price@bristol.ac.uk>
|
||||||
|
Date: Wed, 12 Dec 2018 19:59:32 +0000
|
||||||
|
Subject: [PATCH] Use __vector instead of vector to fix altivec builds
|
||||||
|
|
||||||
|
Patch taken from Debian khronos-opencl-headers package:
|
||||||
|
https://sources.debian.org/patches/khronos-opencl-headers/1.2-svn26009-1/use__vector.patch/
|
||||||
|
---
|
||||||
|
CL/cl_platform.h | 14 +++++++-------
|
||||||
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CL/cl_platform.h b/CL/cl_platform.h
|
||||||
|
index 0c817dd..184db25 100644
|
||||||
|
--- cl_platform.h
|
||||||
|
+++ cl_platform.h
|
||||||
|
@@ -401,13 +401,13 @@ typedef unsigned int cl_GLenum;
|
||||||
|
/* Define basic vector types */
|
||||||
|
#if defined( __VEC__ )
|
||||||
|
#include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
|
||||||
|
- typedef vector unsigned char __cl_uchar16;
|
||||||
|
- typedef vector signed char __cl_char16;
|
||||||
|
- typedef vector unsigned short __cl_ushort8;
|
||||||
|
- typedef vector signed short __cl_short8;
|
||||||
|
- typedef vector unsigned int __cl_uint4;
|
||||||
|
- typedef vector signed int __cl_int4;
|
||||||
|
- typedef vector float __cl_float4;
|
||||||
|
+ typedef __vector unsigned char __cl_uchar16;
|
||||||
|
+ typedef __vector signed char __cl_char16;
|
||||||
|
+ typedef __vector unsigned short __cl_ushort8;
|
||||||
|
+ typedef __vector signed short __cl_short8;
|
||||||
|
+ typedef __vector unsigned int __cl_uint4;
|
||||||
|
+ typedef __vector signed int __cl_int4;
|
||||||
|
+ typedef __vector float __cl_float4;
|
||||||
|
#define __CL_UCHAR16__ 1
|
||||||
|
#define __CL_CHAR16__ 1
|
||||||
|
#define __CL_USHORT8__ 1
|
|
@ -4,7 +4,7 @@ _openclver=1.2
|
||||||
_distver=20160105
|
_distver=20160105
|
||||||
_githash=47be6196cb09f2718990f9537ac69fc5ec43aed5
|
_githash=47be6196cb09f2718990f9537ac69fc5ec43aed5
|
||||||
version="${_openclver}.${_distver}"
|
version="${_openclver}.${_distver}"
|
||||||
revision=1
|
revision=2
|
||||||
archs=noarch
|
archs=noarch
|
||||||
wrksrc="OpenCL-Headers-${_githash}"
|
wrksrc="OpenCL-Headers-${_githash}"
|
||||||
short_desc="OpenCL (Open Computing Language) header files"
|
short_desc="OpenCL (Open Computing Language) header files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue