/usr/lib/x86_64-linux-gnu/beignet/include/ocl_pipe.h is in beignet-opencl-icd 1.3.2-2.
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 | /*
* 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_PIPE_H__
#define __OCL_PIPE_H__
#include "ocl_types.h"
#include "ocl_work_group.h"
#include "ocl_simd.h"
/* The pipe read function. */
int __read_pipe_2(pipe int p, __generic void* dst);
int __read_pipe_4(pipe int p, reserve_id_t id, uint index, void* dst);
reserve_id_t __reserve_read_pipe(pipe int p, uint num);
void __commit_read_pipe(pipe int p, reserve_id_t rid);
reserve_id_t __work_group_reserve_read_pipe(pipe int p, uint num);
void __work_group_commit_read_pipe(pipe int p, reserve_id_t rid);
reserve_id_t __sub_group_reserve_read_pipe(pipe int p, uint num);
void __sub_group_commit_read_pipe(pipe int p, reserve_id_t rid);
/* The pipe write function. */
int __write_pipe_2(pipe int p, __generic void* src);
int __write_pipe_4(pipe int p, reserve_id_t id, uint index, void* src);
reserve_id_t __reserve_write_pipe(pipe int p, uint num);
void __commit_write_pipe(pipe int p, reserve_id_t rid);
reserve_id_t __work_group_reserve_write_pipe(pipe int p, uint num);
void __work_group_commit_write_pipe(pipe int p, reserve_id_t rid);
reserve_id_t __sub_group_reserve_write_pipe(pipe int p, uint num);
void __sub_group_commit_write_pipe(pipe int p, reserve_id_t rid);
/* The reserve_id_t function. */
bool is_valid_reserve_id(reserve_id_t rid);
/* The pipe query function. */
uint __get_pipe_num_packets(pipe int p);
uint __get_pipe_max_packets(pipe int p);
#endif
|