Skip to content

Commit

Permalink
fix apple metal problem
Browse files Browse the repository at this point in the history
  • Loading branch information
FindDefinition committed Sep 1, 2024
1 parent 389501c commit d5c6e95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/tensorview/geometry/obb_grid_overlap.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ template <typename T> class OBBCornersGridOverlap {
TV_HOST_DEVICE_INLINE static tv::array_nd<T, 4, 2>
prepare_dfvt_corners(const TV_METAL_THREAD tv::array_nd<T, 4, 2> &corners,
const TV_METAL_THREAD tv::array<T, 2> &major_vector) {
auto &p_top_right = corners[0];
auto &p_bottom_right = corners[1];
auto &p_bottom_left = corners[2];
auto &p_top_left = corners[3];
TV_METAL_THREAD auto &p_top_right = corners[0];
TV_METAL_THREAD auto &p_bottom_right = corners[1];
TV_METAL_THREAD auto &p_bottom_left = corners[2];
TV_METAL_THREAD auto &p_top_left = corners[3];
if (major_vector[0] >= 0 && major_vector[1] >= 0) {
return {(p_bottom_left), (p_top_left), (p_bottom_right), (p_top_right)};
} else if (major_vector[0] < 0 && major_vector[1] >= 0) {
Expand Down

0 comments on commit d5c6e95

Please sign in to comment.