/usr/lib/x86_64-linux-gnu/beignet/include/ocl_work_group.h is in beignet-opencl-icd 1.3.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* Copyright © 2012 - 2014 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __OCL_WORK_GROUP_H__
#define __OCL_WORK_GROUP_H__
#include "ocl_types.h"
int work_group_all(int predicate);
int work_group_any(int predicate);
/* broadcast */
OVERLOADABLE int work_group_broadcast(int a, size_t local_id);
OVERLOADABLE uint work_group_broadcast(uint a, size_t local_id);
OVERLOADABLE long work_group_broadcast(long a, size_t local_id);
OVERLOADABLE ulong work_group_broadcast(ulong a, size_t local_id);
OVERLOADABLE float work_group_broadcast(float a, size_t local_id);
OVERLOADABLE double work_group_broadcast(double a, size_t local_id);
OVERLOADABLE int work_group_broadcast(int a, size_t local_id_x, size_t local_id_y);
OVERLOADABLE uint work_group_broadcast(uint a, size_t local_id_x, size_t local_id_y);
OVERLOADABLE long work_group_broadcast(long a, size_t local_id_x, size_t local_id_y);
OVERLOADABLE ulong work_group_broadcast(ulong a, size_t local_id_x, size_t local_id_y);
OVERLOADABLE float work_group_broadcast(float a, size_t local_id_x, size_t local_id_y);
OVERLOADABLE double work_group_broadcast(double a, size_t local_id_x, size_t local_id_y);
OVERLOADABLE int work_group_broadcast(int a, size_t local_id_x, size_t local_id_y, size_t local_id_z);
OVERLOADABLE uint work_group_broadcast(uint a, size_t local_id_x, size_t local_id_y, size_t local_id_z);
OVERLOADABLE long work_group_broadcast(long a, size_t local_id_x, size_t local_id_y, size_t local_id_z);
OVERLOADABLE ulong work_group_broadcast(ulong a, size_t local_id_x, size_t local_id_y, size_t local_id_z);
OVERLOADABLE float work_group_broadcast(float a, size_t local_id_x, size_t local_id_y, size_t local_id_z);
OVERLOADABLE double work_group_broadcast(double a, size_t local_id_x, size_t local_id_y, size_t local_id_z);
/* reduce add */
OVERLOADABLE int work_group_reduce_add(int x);
OVERLOADABLE uint work_group_reduce_add(uint x);
OVERLOADABLE long work_group_reduce_add(long x);
OVERLOADABLE ulong work_group_reduce_add(ulong x);
OVERLOADABLE float work_group_reduce_add(float x);
OVERLOADABLE double work_group_reduce_add(double x);
/* reduce min */
OVERLOADABLE int work_group_reduce_min(int x);
OVERLOADABLE uint work_group_reduce_min(uint x);
OVERLOADABLE long work_group_reduce_min(long x);
OVERLOADABLE ulong work_group_reduce_min(ulong x);
OVERLOADABLE float work_group_reduce_min(float x);
OVERLOADABLE double work_group_reduce_min(double x);
/* reduce max */
OVERLOADABLE int work_group_reduce_max(int x);
OVERLOADABLE uint work_group_reduce_max(uint x);
OVERLOADABLE long work_group_reduce_max(long x);
OVERLOADABLE ulong work_group_reduce_max(ulong x);
OVERLOADABLE float work_group_reduce_max(float x);
OVERLOADABLE double work_group_reduce_max(double x);
/* scan_inclusive add */
OVERLOADABLE int work_group_scan_inclusive_add(int x);
OVERLOADABLE uint work_group_scan_inclusive_add(uint x);
OVERLOADABLE long work_group_scan_inclusive_add(long x);
OVERLOADABLE ulong work_group_scan_inclusive_add(ulong x);
OVERLOADABLE float work_group_scan_inclusive_add(float x);
OVERLOADABLE double work_group_scan_inclusive_add(double x);
/* scan_inclusive min */
OVERLOADABLE int work_group_scan_inclusive_min(int x);
OVERLOADABLE uint work_group_scan_inclusive_min(uint x);
OVERLOADABLE long work_group_scan_inclusive_min(long x);
OVERLOADABLE ulong work_group_scan_inclusive_min(ulong x);
OVERLOADABLE float work_group_scan_inclusive_min(float x);
OVERLOADABLE double work_group_scan_inclusive_min(double x);
/* scan_inclusive max */
OVERLOADABLE int work_group_scan_inclusive_max(int x);
OVERLOADABLE uint work_group_scan_inclusive_max(uint x);
OVERLOADABLE long work_group_scan_inclusive_max(long x);
OVERLOADABLE ulong work_group_scan_inclusive_max(ulong x);
OVERLOADABLE float work_group_scan_inclusive_max(float x);
OVERLOADABLE double work_group_scan_inclusive_max(double x);
/* scan_exclusive add */
OVERLOADABLE int work_group_scan_exclusive_add(int x);
OVERLOADABLE uint work_group_scan_exclusive_add(uint x);
OVERLOADABLE long work_group_scan_exclusive_add(long x);
OVERLOADABLE ulong work_group_scan_exclusive_add(ulong x);
OVERLOADABLE float work_group_scan_exclusive_add(float x);
OVERLOADABLE double work_group_scan_exclusive_add(double x);
/* scan_exclusive min */
OVERLOADABLE int work_group_scan_exclusive_min(int x);
OVERLOADABLE uint work_group_scan_exclusive_min(uint x);
OVERLOADABLE long work_group_scan_exclusive_min(long x);
OVERLOADABLE ulong work_group_scan_exclusive_min(ulong x);
OVERLOADABLE float work_group_scan_exclusive_min(float x);
OVERLOADABLE double work_group_scan_exclusive_min(double x);
/* scan_exclusive max */
OVERLOADABLE int work_group_scan_exclusive_max(int x);
OVERLOADABLE uint work_group_scan_exclusive_max(uint x);
OVERLOADABLE long work_group_scan_exclusive_max(long x);
OVERLOADABLE ulong work_group_scan_exclusive_max(ulong x);
OVERLOADABLE float work_group_scan_exclusive_max(float x);
OVERLOADABLE double work_group_scan_exclusive_max(double x);
#endif /* __OCL_WORK_GROUP_H__ */
|