diff --git a/samples/fp16/half2_math.cpp b/samples/fp16/half2_math.cpp index db32eba1f..11e039019 100644 --- a/samples/fp16/half2_math.cpp +++ b/samples/fp16/half2_math.cpp @@ -170,7 +170,7 @@ __global__ void half_le(const half2 *x, const half2 *y, half2 *z) { __global__ void half_lt(const half2 *x, const half2 *y, half2 *z) { size_t i = hipBlockDim_x * hipBlockIdx_x + hipThreadIdx_x; - z[i] = __hgt2(x[i], y[i]); + z[i] = __hlt2(x[i], y[i]); } __global__ void half_ne(const half2 *x, const half2 *y, half2 *z) { size_t i = hipBlockDim_x * hipBlockIdx_x + hipThreadIdx_x; diff --git a/samples/fp16/half_math.cpp b/samples/fp16/half_math.cpp index a11f35bb5..1437a68e9 100644 --- a/samples/fp16/half_math.cpp +++ b/samples/fp16/half_math.cpp @@ -160,7 +160,7 @@ __global__ void half_le(const half *x, const half *y, half *z) { __global__ void half_lt(const half *x, const half *y, half *z) { size_t i = hipBlockDim_x * hipBlockIdx_x + hipThreadIdx_x; - z[i] = __hgt(x[i], y[i]); + z[i] = __hlt(x[i], y[i]); } __global__ void half_ne(const half *x, const half *y, half *z) { size_t i = hipBlockDim_x * hipBlockIdx_x + hipThreadIdx_x;