Tensor Tiling Library
 
Loading...
Searching...
No Matches
c/TTL_types.h
Go to the documentation of this file.
1/*
2 * TTL_types.h
3 *
4 * Copyright (c) 2023 Mobileye
5 *
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#pragma once
20
21#include "stdbool.h" // Define bool, false, and true
22#include "stddef.h"
23#include "stdio.h" // Include to make printf appear for other include files
24
25typedef unsigned char uchar; ///< opencl and so TTL supports a type called uchar which is not part of C
26#define __global ///< The opencl __global namespace is not supported in C
27#define __local ///< The opencl __local namespace is not supported in C
28typedef unsigned char event_t; ///< event_t is not supported, so provide a harmless placeholder
29typedef unsigned char uchar; ///< OpenCL supports uchar so provide the same in c
30typedef unsigned int uint; ///< OpenCL supports uint so provide the same in c
31typedef unsigned short ushort; ///< OpenCL supports ushort so provide the same in c
32typedef unsigned long ulong; ///< OpenCL supports ulong so provide the same in c
33
34#include "../opencl/TTL_types.h"
unsigned char uchar
opencl and so TTL supports a type called uchar which is not part of C
Definition c/TTL_types.h:25
unsigned long ulong
OpenCL supports ulong so provide the same in c.
Definition c/TTL_types.h:32
unsigned int uint
OpenCL supports uint so provide the same in c.
Definition c/TTL_types.h:30
unsigned short ushort
OpenCL supports ushort so provide the same in c.
Definition c/TTL_types.h:31
unsigned char event_t
event_t is not supported, so provide a harmless placeholder
Definition c/TTL_types.h:28