Commit 54f0bf4c authored by limm's avatar limm
Browse files

fix compilation optimization bugs

parent 321b42b8
......@@ -395,7 +395,7 @@ __device__ inline double intersectAreaO(Point* ps1, int n1, Point* ps2, int n2,
return res;
}
__device__ inline void Jarvis(Point* in_poly, int& n_poly) {
__attribute__((optnone)) __device__ inline void Jarvis(Point* in_poly, int& n_poly) {
Point p_max, p_k;
int max_index, k_index;
int Stack[NMAX] = {}, top1, top2;
......
......@@ -158,7 +158,7 @@ __device__ inline void minBoundingRect(Point *ps, int n_points, float *minbox) {
}
// convex_find
__device__ inline void Jarvis(Point *in_poly, int &n_poly) {
__attribute__((optnone)) __device__ inline void Jarvis(Point *in_poly, int &n_poly) {
int n_input = n_poly;
Point input_poly[20];
for (int i = 0; i < n_input; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment