Skip to content

Commit ccdc61c

Browse files
authored
[Fix] Fix the compilation error on windows (#1657)
1 parent b5ec327 commit ccdc61c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mmcv/ops/csrc/common/cuda/convex_iou_cuda_kernel.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define MAXN 100
1212
#define NMAX 512
13-
const double EPS = 1E-8;
13+
__device__ const double EPS = 1E-8;
1414

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

mmcv/ops/csrc/common/cuda/min_area_polygons_cuda.cuh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
#endif
1010

1111
#define MAXN 20
12-
const float EPS = 1E-8;
13-
const float PI = 3.1415926;
12+
__device__ const float PI = 3.1415926;
1413

1514
struct Point {
1615
float x, y;

0 commit comments

Comments
 (0)