Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
franz committed Oct 28, 2022
1 parent df234fb commit e067b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/fp16/half2_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion samples/fp16/half_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e067b0b

Please sign in to comment.