Add missing __device__ for forward declares.

[ROCm/hip commit: 59adb5e52a]
Cette révision appartient à :
Alex Voicu
2018-06-02 17:46:37 +01:00
révisé par GitHub
Parent f7fd20ec17
révision 192839c71b
+7 -3
Voir le fichier
@@ -176,7 +176,9 @@ __device__
inline
unsigned int atomicInc(unsigned int* address, unsigned int val)
{
extern unsigned int __builtin_amdgcn_atomic_inc(
__device__
extern
unsigned int __builtin_amdgcn_atomic_inc(
unsigned int*,
unsigned int,
unsigned int,
@@ -191,7 +193,9 @@ __device__
inline
unsigned int atomicDec(unsigned int* address, unsigned int val)
{
extern unsigned int __builtin_amdgcn_atomic_dec(
__device__
extern
unsigned int __builtin_amdgcn_atomic_dec(
unsigned int*,
unsigned int,
unsigned int,
@@ -262,4 +266,4 @@ unsigned long long atomicXor(
return __atomic_fetch_xor(address, val, __ATOMIC_RELAXED);
}
// TODO: add scoped atomics i.e. atomic{*}_system && atomic{*}_block.
// TODO: add scoped atomics i.e. atomic{*}_system && atomic{*}_block.