From c832718f428c7f1bc006dd6971a7c3eba1b8610b 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/clr commit: b14c89085150e2b9fc6702c3c24194a71fc399c1] --- projects/clr/hipamd/include/hcc_detail/hip_runtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/include/hcc_detail/hip_runtime.h b/projects/clr/hipamd/include/hcc_detail/hip_runtime.h index 62386a14a2..f874a704bc 100644 --- a/projects/clr/hipamd/include/hcc_detail/hip_runtime.h +++ b/projects/clr/hipamd/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)