|
1 |
| -From 0116b61334e967d152f8b81708c93e57312c0955 Mon Sep 17 00:00:00 2001 |
| 1 | +From 21ffb389c1f308394006751c543d048c673a2545 Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Anton Zabaznov < [email protected]>
|
3 | 3 | Date: Tue, 22 Sep 2020 19:03:50 +0300
|
4 | 4 | Subject: [PATCH] OpenCL 3.0 support
|
@@ -930,7 +930,7 @@ index 430e07d36f6..afa900ab24d 100644
|
930 | 930 |
|
931 | 931 | #endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
|
932 | 932 | diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h
|
933 |
| -index 66e18bdd47b..e3b94149fc0 100644 |
| 933 | +index 66e18bdd47b..67d900eb1c3 100644 |
934 | 934 | --- a/clang/lib/Headers/opencl-c.h
|
935 | 935 | +++ b/clang/lib/Headers/opencl-c.h
|
936 | 936 | @@ -35,7 +35,6 @@
|
@@ -3522,7 +3522,7 @@ index 66e18bdd47b..e3b94149fc0 100644
|
3522 | 3522 |
|
3523 | 3523 | // atomic_fetch()
|
3524 | 3524 | -
|
3525 |
| -+#ifdef defined(__opencl_c_atomic_scope_device) && \ |
| 3525 | ++#if defined(__opencl_c_atomic_scope_device) && \ |
3526 | 3526 | + defined(__opencl_c_atomic_order_seq_cst)
|
3527 | 3527 | +#ifdef __opencl_c_generic_address_space
|
3528 | 3528 | int __ovld atomic_fetch_add(volatile atomic_int *object, int operand);
|
@@ -3686,7 +3686,7 @@ index 66e18bdd47b..e3b94149fc0 100644
|
3686 | 3686 | + // defined(cl_khr_int64_extended_atomics)
|
3687 | 3687 | +#endif // __opencl_c_generic_address_space
|
3688 | 3688 | +
|
3689 |
| -+#ifdef(__OPENCL_C_VERSION__ >= CL_VERSION_3_0) |
| 3689 | ++#if(__OPENCL_C_VERSION__ >= CL_VERSION_3_0) |
3690 | 3690 | +int __ovld atomic_fetch_add(volatile atomic_int __global *object, int operand);
|
3691 | 3691 | +uint __ovld atomic_fetch_add(volatile atomic_uint __local *object,
|
3692 | 3692 | + uint operand);
|
|
0 commit comments