Skip to content

Commit

Permalink
[Fix] Fix the compilation error on windows (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida authored Jan 11, 2022
1 parent b5ec327 commit ccdc61c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mmcv/ops/csrc/common/cuda/convex_iou_cuda_kernel.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#define MAXN 100
#define NMAX 512
const double EPS = 1E-8;
__device__ const double EPS = 1E-8;

__device__ inline int sig(double d) { return (d > EPS) - (d < -EPS); }

Expand Down
3 changes: 1 addition & 2 deletions mmcv/ops/csrc/common/cuda/min_area_polygons_cuda.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
#endif

#define MAXN 20
const float EPS = 1E-8;
const float PI = 3.1415926;
__device__ const float PI = 3.1415926;

struct Point {
float x, y;
Expand Down

0 comments on commit ccdc61c

Please sign in to comment.