Skip to content

Commit de262c9

Browse files
author
Artem Gindinson
authored
Only erase image macro definitions for OpenCL 3.0 (#410)
As a follow-up on commit d6563b0, retain default image macro definitions for pre-3.0 standards. It is only with OpenCL 3.0 that Compute Runtime's compiler interface bothers to define the macros for platforms that provide image support. Signed-off-by: Artem Gindinson <[email protected]>
1 parent d6563b0 commit de262c9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

patches/clang/0004-Do-not-define-image-support-macros-in-OpenCL-C-base.patch

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ diff --git a/clang/lib/Headers/opencl-c-base.h b/clang/lib/Headers/opencl-c-base
1212
index 5191c41bcd05..8907886aeecf 100644
1313
--- a/clang/lib/Headers/opencl-c-base.h
1414
+++ b/clang/lib/Headers/opencl-c-base.h
15-
@@ -58,9 +58,7 @@
16-
#define __opencl_c_atomic_scope_device 1
17-
#define __opencl_c_atomic_scope_all_devices 1
18-
#define __opencl_c_device_enqueue 1
19-
-#define __opencl_c_read_write_images 1
20-
#define __opencl_c_program_scope_global_variables 1
21-
-#define __opencl_c_images 1
22-
#endif
23-
24-
// Define header-only feature macros for OpenCL C 3.0.
2515
@@ -70,7 +68,6 @@
2616
#define __opencl_c_atomic_order_seq_cst 1
2717
#define __opencl_c_atomic_scope_device 1

0 commit comments

Comments
 (0)