fixed broken tests and device code for integer intrinsics

1. Fixed build issues with new Integer intrinsics
2. Changed tests to work exactly as CUDA code
3. Still some integer intrinsics need to be supported

Change-Id: Ie6f4171259cf4da517436895d4f6f01e01f59b11
이 커밋은 다음에 포함됨:
Aditya Atluri가 2017-01-17 09:00:09 -06:00를 커밋했습니다
1 부모 feba9fe213
커밋 f0ea51c786
8 파일이 변경됨
+23 -23

검색과 일치하는 파일 없음

+4 -9
파일 보기
@@ -44,21 +44,21 @@ __device__ static inline int __mul24(int x, int y)
return __hip_hc_ir_mul24_int(x, y);
}
__device__ long long int __mul64hi(long long int x, long long int y);
__device__ int __mulhi(int x, int y)
__device__ static inline int __mulhi(int x, int y)
{
return __hip_hc_ir_mulhi_int(x, y);
}
__device__ unsigned int __popc( unsigned int x);
__device__ unsigned int __popcll( unsigned long long int x);
__device__ int __rhadd(int x, int y)
__device__ static inline int __rhadd(int x, int y)
{
return (x + y + 1) >> 1;
}
//__device__ unsigned int __sad(int x, int y, int z);
/*
Implemented signed version of sad
Implement signed version of sad
*/
__device__ unsigned int __uhadd(unsigned int x, unsigned int y)
__device__ static inline unsigned int __uhadd(unsigned int x, unsigned int y)
{
return (x + y) >> 1;
}
@@ -71,11 +71,6 @@ __device__ unsigned int __umulhi(unsigned int x, unsigned int y);
__device__ unsigned int __urhadd(unsigned int x, unsigned int y);
__device__ unsigned int __usad(unsigned int x, unsigned int y, unsigned int z);
// warp vote function __all __any __ballot
__device__ int __all( int input);
__device__ int __any( int input);
__device__ unsigned long long int __ballot( int input);
/*
Rounding modes are not yet supported in HIP
*/
+5
파일 보기
@@ -420,6 +420,11 @@ __device__ unsigned int atomicInc(unsigned int* address,
__device__ unsigned int atomicDec(unsigned int* address,
unsigned int val);
// warp vote function __all __any __ballot
__device__ int __all( int input);
__device__ int __any( int input);
__device__ unsigned long long int __ballot( int input);
// warp shuffle functions
#ifdef __cplusplus
__device__ int __shfl(int input, int lane, int width=warpSize);