Implement __ballot, __any, __all into HIP headers

Cette révision appartient à :
Aaron Enye Shi
2018-06-19 22:07:26 +00:00
Parent 175c87f2bf
révision 9a295a732d
2 fichiers modifiés avec 42 ajouts et 31 suppressions
-17
Voir le fichier
@@ -147,23 +147,6 @@ __device__ void* __hip_hc_memset(void* dst, uint8_t val, size_t size) {
// abort
__device__ void abort() { return hc::abort(); }
// warp vote function __all __any __ballot
__device__ int __all(int input) { return hc::__all(input); }
__device__ int __any(int input) {
#ifdef NVCC_COMPAT
if (hc::__any(input) != 0)
return 1;
else
return 0;
#else
return hc::__any(input);
#endif
}
__device__ unsigned long long int __ballot(int input) { return hc::__ballot(input); }
// warp shuffle functions
__device__ int __shfl(int input, int lane, int width) { return hc::__shfl(input, lane, width); }