Support for Atomic inc and dec in HIP

Change-Id: I783e4917cece5cc379894f0d293382315fbfa8b0
This commit is contained in:
Rahul Garg
2016-05-11 12:51:11 +05:30
parent 7aa503f43f
commit 381dc93b96
3 changed files with 26 additions and 9 deletions
+9
View File
@@ -376,6 +376,15 @@ __device__ unsigned int atomicXor(unsigned int* address,
__device__ unsigned long long int atomicXor(unsigned long long int* address,
unsigned long long int val);
//atomicInc()
__device__ unsigned int atomicInc(unsigned int* address,
unsigned int val);
//atomicDec()
__device__ unsigned int atomicDec(unsigned int* address,
unsigned int val);
// integer intrinsic function __poc __clz __ffs __brev
__device__ unsigned int __popc( unsigned int input);