Merge branch 'privatestaging' of github.com:AMDComputeLibraries/HIP-privatestaging into privatestaging

This commit is contained in:
Jack Chung
2016-02-02 16:28:02 +08:00
förälder 8df395a006 ed0a4fc1b7
incheckning e62a9e1bb7
+41
Visa fil
@@ -351,6 +351,47 @@ __device__ inline 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);
}
__device__ int __shfl_up(int input, unsigned int lane_delta, int width)
{
return hc::__shfl_up(input,lane_delta,width);
}
__device__ int __shfl_down(int input, unsigned int lane_delta, int width)
{
return hc::__shfl_down(input,lane_delta,width);
}
__device__ int __shfl_xor(int input, int lane_mask, int width)
{
return hc::__shfl_xor(input,lane_mask,width);
}
__device__ float __shfl(float input, int lane, int width)
{
return hc::__shfl(input,lane,width);
}
__device__ float __shfl_up(float input, unsigned int lane_delta, int width)
{
return hc::__shfl_up(input,lane_delta,width);
}
__device__ float __shfl_down(float input, unsigned int lane_delta, int width)
{
return hc::__shfl_down(input,lane_delta,width);
}
__device__ float __shfl_xor(float input, int lane_mask, int width)
{
return hc::__shfl_xor(input,lane_mask,width);
}
#include <hc_math.hpp>
// TODO: Choose whether default is precise math or fast math based on compilation flag.