[Libclc-dev] [PATCH 13/15] R600: Map address spaces for atomic_min
Aaron Watry
awatry at gmail.com
Tue Sep 9 16:24:46 PDT 2014
Signed-off-by: Aaron Watry <awatry at gmail.com>
---
r600/lib/atomic/atomic.cl | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/r600/lib/atomic/atomic.cl b/r600/lib/atomic/atomic.cl
index 11864e6..ab39d0f 100644
--- a/r600/lib/atomic/atomic.cl
+++ b/r600/lib/atomic/atomic.cl
@@ -33,3 +33,13 @@ ATOMIC_FUNC_DEFINE(signed, signed, int, atomic_max, atomic_max, global, 1)
ATOMIC_FUNC_DEFINE(signed, signed, int, atomic_max, atomic_max, local, 3)
ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_max, atomic_umax, global, 1)
ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_max, atomic_umax, local, 3)
+
+_CLC_DECL signed int __clc_atomic_min_addr1(volatile global signed int*, signed int);
+_CLC_DECL signed int __clc_atomic_min_addr3(volatile local signed int*, signed int);
+_CLC_DECL uint __clc_atomic_umin_addr1(volatile global uint*, uint);
+_CLC_DECL uint __clc_atomic_umin_addr3(volatile local uint*, uint);
+
+ATOMIC_FUNC_DEFINE(signed, signed, int, atomic_min, atomic_min, global, 1)
+ATOMIC_FUNC_DEFINE(signed, signed, int, atomic_min, atomic_min, local, 3)
+ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_min, atomic_umin, global, 1)
+ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_min, atomic_umin, local, 3)
--
1.9.1
More information about the Libclc-dev
mailing list