From 2e0c67bbd3b987e62aee7334824cc6bffa3ba9dd Mon Sep 17 00:00:00 2001 From: Konstantin Pyzhov Date: Fri, 19 Apr 2019 08:53:22 -0400 Subject: [PATCH] Fix for __popcll() device function implementation. [ROCm/hip commit: beadaab661798ae0b44fb8cc7810725402474c91] --- projects/hip/include/hip/hcc_detail/device_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/device_functions.h b/projects/hip/include/hip/hcc_detail/device_functions.h index 7cb9406856..044ca1e634 100644 --- a/projects/hip/include/hip/hcc_detail/device_functions.h +++ b/projects/hip/include/hip/hcc_detail/device_functions.h @@ -42,7 +42,7 @@ __device__ static inline unsigned int __popc(unsigned int input) { return __builtin_popcount(input); } __device__ static inline unsigned int __popcll(unsigned long long int input) { - return __builtin_popcountl(input); + return __builtin_popcountll(input); } __device__ static inline int __clz(int input) {