openACC passing a list of struct
问题 I have a C program to find whether 2 sets of polygons are overlapped. User input 2 sets of polygon (each set of data has several thousands polygons) and the program see which polygon in set1 overlap with which polygon in set2 I have 2 struct like these: struct gpc_vertex /* Polygon vertex */ { double x; double y; }; struct gpc_vertex_list /* Polygon contour */ { int pid; // polygon id int num_vertices; double *mbr; // minimum bounding rectangle of the polygon, so always 4 elements }; I have