Skip to content

Commit

Permalink
windows compatibility
Browse files Browse the repository at this point in the history
Summary: Few tweaks to make CUDA build on windows happier, as remarked in #876.

Reviewed By: patricklabatut

Differential Revision: D31688188

fbshipit-source-id: 20816d6215f2e3ec898f81ae4221b1c2ff24b64f
  • Loading branch information
bottler authored and facebook-github-bot committed Oct 18, 2021
1 parent 16ebf54 commit 1a7442a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pytorch3d/csrc/iou_box3d/iou_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <cstdio>
#include "utils/float_math.cuh"

const auto kEpsilon = 1e-4;
__constant__ const float kEpsilon = 1e-4;

/*
_PLANES and _TRIS define the 4- and 3-connectivity
Expand Down Expand Up @@ -473,10 +473,10 @@ __device__ inline int ClipTriByPlane(
if (isin0 && isin1 && !isin2) {
return ClipTriByPlaneOneOut(plane, normal, v2, v0, v1, face_verts_out);
}
if (isin0 && not isin1 && isin2) {
if (isin0 && !isin1 && isin2) {
return ClipTriByPlaneOneOut(plane, normal, v1, v0, v2, face_verts_out);
}
if (not isin0 && isin1 && isin2) {
if (!isin0 && isin1 && isin2) {
return ClipTriByPlaneOneOut(plane, normal, v0, v1, v2, face_verts_out);
}

Expand Down
4 changes: 2 additions & 2 deletions pytorch3d/csrc/iou_box3d/iou_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,10 @@ inline face_verts ClipTriByPlane(
if (isin0 && isin1 && !isin2) {
return ClipTriByPlaneOneOut(plane, normal, v2, v0, v1);
}
if (isin0 && not isin1 && isin2) {
if (isin0 && !isin1 && isin2) {
return ClipTriByPlaneOneOut(plane, normal, v1, v0, v2);
}
if (not isin0 && isin1 && isin2) {
if (!isin0 && isin1 && isin2) {
return ClipTriByPlaneOneOut(plane, normal, v0, v1, v2);
}

Expand Down

0 comments on commit 1a7442a

Please sign in to comment.