From af8cc35552c65fd32df800c04dfa156c1743b85b Mon Sep 17 00:00:00 2001 From: streamhsa Date: Tue, 2 Feb 2016 15:25:42 +0530 Subject: [PATCH] Adjusted the value of __any as per CUDA -sandeep [ROCm/hip commit: 974d4919023ca6224f5ada55dba68688bde60c7f] --- projects/hip/include/hcc_detail/hip_runtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/hip/include/hcc_detail/hip_runtime.h b/projects/hip/include/hcc_detail/hip_runtime.h index 62386a14a2..f874a704bc 100644 --- a/projects/hip/include/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hcc_detail/hip_runtime.h @@ -353,7 +353,8 @@ __device__ inline int __all( int input) __device__ inline int __any( int input) { - return hc::__any( input); + if( hc::__any( input)!=0) return 1; + else return 0; } __device__ inline unsigned long long int __ballot( int input)