File tree Expand file tree Collapse file tree 34 files changed +151
-29
lines changed Expand file tree Collapse file tree 34 files changed +151
-29
lines changed Original file line number Diff line number Diff line change 15
15
16
16
#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
17
17
18
- #ifdef cl_khr_fp64
19
- #pragma OPENCL EXTENSION cl_khr_fp64 : enable
20
- #endif
21
-
22
- #ifdef cl_khr_fp16
23
- #pragma OPENCL EXTENSION cl_khr_fp16 : enable
24
- #endif
25
-
26
- /* Function Attributes */
27
- #include <clc/clcfunc.h>
28
-
29
- /* 6.1 Supported Data Types */
30
- #include <clc/clctypes.h>
18
+ #include <clc/opencl/opencl-base.h>
31
19
32
20
/* 6.2.3 Explicit Conversions */
33
21
#include <clc/opencl/convert.h>
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_ABS_H__
10
+ #define __CLC_OPENCL_INTEGER_ABS_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define __CLC_BODY <clc/opencl/integer/abs.inc>
10
15
#include <clc/integer/gentype.inc>
16
+
17
+ #endif // __CLC_OPENCL_INTEGER_ABS_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_ABS_DIFF_H__
10
+ #define __CLC_OPENCL_INTEGER_ABS_DIFF_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define __CLC_BODY <clc/opencl/integer/abs_diff.inc>
10
15
#include <clc/integer/gentype.inc>
16
+
17
+ #endif // __CLC_OPENCL_INTEGER_ABS_DIFF_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_ADD_SAT_H__
10
+ #define __CLC_OPENCL_INTEGER_ADD_SAT_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define FUNCTION add_sat
10
15
#define __CLC_BODY <clc/shared/binary_decl.inc>
11
16
12
17
#include <clc/integer/gentype.inc>
13
18
14
19
#undef FUNCTION
20
+
21
+ #endif // __CLC_OPENCL_INTEGER_ADD_SAT_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_CLZ_H__
10
+ #define __CLC_OPENCL_INTEGER_CLZ_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define FUNCTION clz
10
15
#define __CLC_BODY <clc/shared/unary_decl.inc>
11
16
12
17
#include <clc/integer/gentype.inc>
13
18
14
19
#undef FUNCTION
20
+
21
+ #endif // __CLC_OPENCL_INTEGER_CLZ_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_CTZ_H__
10
+ #define __CLC_OPENCL_INTEGER_CTZ_H__
11
+
9
12
#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
10
13
14
+ #include <clc/opencl/opencl-base.h>
15
+
11
16
#define FUNCTION ctz
12
17
#define __CLC_BODY <clc/shared/unary_decl.inc>
13
18
16
21
#undef FUNCTION
17
22
18
23
#endif // __OPENCL_C_VERSION__ >= CL_VERSION_2_0
24
+
25
+ #endif // __CLC_OPENCL_INTEGER_CTZ_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_HADD_H__
10
+ #define __CLC_OPENCL_INTEGER_HADD_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define FUNCTION hadd
10
15
#define __CLC_BODY <clc/shared/binary_decl.inc>
11
16
12
17
#include <clc/integer/gentype.inc>
13
18
14
19
#undef FUNCTION
20
+
21
+ #endif // __CLC_OPENCL_INTEGER_HADD_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_MAD24_H__
10
+ #define __CLC_OPENCL_INTEGER_MAD24_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define FUNCTION mad24
10
15
#define __CLC_BODY <clc/shared/ternary_decl.inc>
11
16
12
17
#include <clc/integer/gentype24.inc>
13
18
14
19
#undef FUNCTION
20
+
21
+ #endif // __CLC_OPENCL_INTEGER_MAD24_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_MAD_HI_H__
10
+ #define __CLC_OPENCL_INTEGER_MAD_HI_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define FUNCTION mad_hi
10
15
#define __CLC_BODY <clc/shared/ternary_decl.inc>
11
16
12
17
#include <clc/integer/gentype.inc>
13
18
14
19
#undef FUNCTION
20
+
21
+ #endif // __CLC_OPENCL_INTEGER_MAD_HI_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
+ #ifndef __CLC_OPENCL_INTEGER_MAD_SAT_H__
10
+ #define __CLC_OPENCL_INTEGER_MAD_SAT_H__
11
+
12
+ #include <clc/opencl/opencl-base.h>
13
+
9
14
#define FUNCTION mad_sat
10
15
#define __CLC_BODY <clc/shared/ternary_decl.inc>
11
16
12
17
#include <clc/integer/gentype.inc>
13
18
14
19
#undef FUNCTION
20
+
21
+ #endif // __CLC_OPENCL_INTEGER_MAD_SAT_H__
You can’t perform that action at this time.
0 commit comments