|
1 | | -From ebe6029aebb2a7a6b209f51556ef6e677100b054 Mon Sep 17 00:00:00 2001 |
| 1 | +From ebfc732638fa68d1bc79fbad02011fe71ffc075a Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Anton Zabaznov < [email protected]> |
3 | 3 | Date: Thu, 24 Sep 2020 00:12:24 +0300 |
4 | 4 | Subject: [PATCH] OpenCL 3.0 support |
@@ -766,7 +766,7 @@ index 4cde22ce9a..d248b1c865 100644 |
766 | 766 | #include "clang/Basic/OpenCLExtensions.def" |
767 | 767 |
|
768 | 768 | diff --git a/lib/Headers/opencl-c.h b/lib/Headers/opencl-c.h |
769 | | -index 514c710c11..e325990031 100644 |
| 769 | +index 514c710c11..0b2efc9f2b 100644 |
770 | 770 | --- a/lib/Headers/opencl-c.h |
771 | 771 | +++ b/lib/Headers/opencl-c.h |
772 | 772 | @@ -10,6 +10,60 @@ |
@@ -3476,7 +3476,7 @@ index 514c710c11..e325990031 100644 |
3476 | 3476 |
|
3477 | 3477 | // atomic_fetch() |
3478 | 3478 | - |
3479 | | -+#ifdef defined(__opencl_c_atomic_scope_device) && \ |
| 3479 | ++#if defined(__opencl_c_atomic_scope_device) && \ |
3480 | 3480 | + defined(__opencl_c_atomic_order_seq_cst) |
3481 | 3481 | +#ifdef __opencl_c_generic_address_space |
3482 | 3482 | int __ovld atomic_fetch_add(volatile atomic_int *object, int operand); |
@@ -3652,7 +3652,7 @@ index 514c710c11..e325990031 100644 |
3652 | 3652 | + // defined(cl_khr_int64_extended_atomics) |
3653 | 3653 | +#endif // __opencl_c_generic_address_space |
3654 | 3654 | + |
3655 | | -+#ifdef(__OPENCL_C_VERSION__ >= CL_VERSION_3_0) |
| 3655 | ++#if(__OPENCL_C_VERSION__ >= CL_VERSION_3_0) |
3656 | 3656 | +int __ovld atomic_fetch_add(volatile atomic_int __global *object, int operand); |
3657 | 3657 | +uint __ovld atomic_fetch_add(volatile atomic_uint __local *object, |
3658 | 3658 | + uint operand); |
|
0 commit comments