File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
libclc/generic/include/clc Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change
1
+ #ifndef __CLC_CLC_H__
2
+ #define __CLC_CLC_H__
3
+
1
4
#ifndef cl_clang_storage_class_specifiers
2
5
#error Implementation requires cl_clang_storage_class_specifiers extension!
3
6
#endif
286
289
#include <clc/image/image.h>
287
290
288
291
#pragma OPENCL EXTENSION all : disable
292
+
293
+ #endif // __CLC_CLC_H__
Original file line number Diff line number Diff line change
1
+ #ifndef __CLC_CLCMACROS_H__
2
+ #define __CLC_CLCMACROS_H__
3
+
1
4
/* 6.9 Preprocessor Directives and Macros
2
5
* Some of these are handled by clang or passed by clover */
3
6
#if __OPENCL_VERSION__ >= 110
9
12
#define CLC_VERSION_1_2 120
10
13
#endif
11
14
12
- #define NULL ((void*)0)
15
+ #define NULL ((void *)0)
13
16
14
- #define __kernel_exec (X , typen ) __kernel \
15
- __attribute__((work_group_size_hint(X, 1, 1))) \
16
- __attribute__((vec_type_hint(typen)))
17
+ #define __kernel_exec (X , typen ) \
18
+ __kernel __attribute__((work_group_size_hint(X, 1, 1))) \
19
+ __attribute__((vec_type_hint(typen)))
17
20
18
21
#define kernel_exec (X , typen ) __kernel_exec(X, typen)
22
+
23
+ #endif // __CLC_CLCMACROS_H__
You can’t perform that action at this time.
0 commit comments