We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b2085 commit 9652d69Copy full SHA for 9652d69
hipamd/include/hip/amd_detail/amd_warp_functions.h
@@ -99,19 +99,16 @@ int __any(int predicate) {
99
return __ockl_wfany_i32(predicate);
100
}
101
102
-// XXX from llvm/include/llvm/IR/InstrTypes.h
103
-#define ICMP_NE 33
104
-
105
__device__
106
inline
107
unsigned long long int __ballot(int predicate) {
108
- return __builtin_amdgcn_uicmp(predicate, 0, ICMP_NE);
+ return __builtin_amdgcn_ballot_w64(predicate);
109
110
111
112
113
unsigned long long int __ballot64(int predicate) {
114
+ return __ballot(predicate);
115
116
117
// See amd_warp_sync_functions.h for an explanation of this preprocessor flag.
0 commit comments