From e19b6710eb9f50e1e68661b1178e080e5eb39b9a Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Mon, 16 May 2016 10:42:13 +0530 Subject: [PATCH] Add misssing unsigned keyword to atomicInc and atomicDec Change-Id: I658479c4c7c409dba117152165229880aeb5ab9f [ROCm/hip commit: 8b7f60a735f5c101b3002a22a1c666b59ee0218e] --- projects/hip/src/device_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/src/device_util.cpp b/projects/hip/src/device_util.cpp index c01ad30ab5..2e9e9e4540 100644 --- a/projects/hip/src/device_util.cpp +++ b/projects/hip/src/device_util.cpp @@ -658,14 +658,14 @@ __device__ unsigned long long int atomicXor(unsigned long long int* address, } //atomicInc -__device__ int atomicInc(unsigned int* address, +__device__ unsigned int atomicInc(unsigned int* address, unsigned int val) { return hc::__atomic_wrapinc(address,val); } //atomicDec -__device__ int atomicDec(unsigned int* address, +__device__ unsigned int atomicDec(unsigned int* address, unsigned int val) { return hc::__atomic_wrapdec(address,val);