star-enclosures-2d

Extract enclosures from 2D geometry
git clone git://git.meso-star.fr/star-enclosures-2d.git
Log | Files | Refs | README | LICENSE

commit 7dad9a278f5d33cd7950389104e93d11c1772c7f
parent de8b9b1775584fcb44483e141e59d8778dda0777
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue,  5 Nov 2019 10:24:04 +0100

Remove timing logs

Diffstat:
Msrc/senc2d_scene_analyze.c | 43-------------------------------------------
1 file changed, 0 insertions(+), 43 deletions(-)

diff --git a/src/senc2d_scene_analyze.c b/src/senc2d_scene_analyze.c @@ -1153,8 +1153,6 @@ senc2d_scene_analyze /* Atomic counters to share beetwen threads */ ATOMIC component_count = 0; ATOMIC next_enclosure_id = 1; - char dump[64]; - struct time t0, t1; res_T res = RES_OK; res_T res2 = RES_OK; @@ -1169,11 +1167,6 @@ senc2d_scene_analyze if(!scn->nusegs) goto exit; - #pragma omp single nowait - if(scn->dev->verbose) { - time_current(&t0); - } - darray_segment_tmp_init(scn->dev->allocator, &segments_tmp); segments_tmp_initialized = 1; darray_vrtx_id_init(scn->dev->allocator, &frontiers); @@ -1255,15 +1248,6 @@ senc2d_scene_analyze neighbourhood_by_vertex_initialized = 0; } /* No barrier here */ - #pragma omp single nowait - if(scn->dev->verbose) { - time_sub(&t1, time_current(&t1), &t0); - time_current(&t0); - time_dump(&t1, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump)); - log_info(scn->dev, - "senc2d_scene_analyze: collect_and_link_neighbours step in %s\n", dump); - } - /* Step 2: extract segment connex components */ extract_connex_components(desc, segsides, &connex_components, &segments_tmp, &segments_comp, &s2d_view, &component_count, &res); @@ -1291,15 +1275,6 @@ senc2d_scene_analyze segments_tmp_initialized = 0; } /* No barrier here */ - #pragma omp single nowait - if(scn->dev->verbose) { - time_sub(&t1, time_current(&t1), &t0); - time_current(&t0); - time_dump(&t1, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump)); - log_info(scn->dev, - "senc2d_scene_analyze: extract_connex_components step in %s\n", dump); - } - /* Step 3: group components */ group_connex_components(desc, segsides, &segments_comp, &connex_components, s2d_view, &next_enclosure_id, &res); @@ -1323,15 +1298,6 @@ senc2d_scene_analyze s2d_view = NULL; } /* No barrier here */ - #pragma omp single nowait - if(scn->dev->verbose) { - time_sub(&t1, time_current(&t1), &t0); - time_current(&t0); - time_dump(&t1, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump)); - log_info(scn->dev, - "senc2d_scene_analyze: group_connex_components step in %s\n", dump); - } - /* Step 4: Build result */ build_result(desc, &connex_components, &segments_comp, &frontiers, &res); @@ -1365,15 +1331,6 @@ senc2d_scene_analyze } } /* No barrier here */ - #pragma omp single nowait - if(scn->dev->verbose) { - time_sub(&t1, time_current(&t1), &t0); - time_current(&t0); - time_dump(&t1, TIME_MSEC | TIME_SEC | TIME_MIN, NULL, dump, sizeof(dump)); - log_info(scn->dev, - "senc2d_scene_analyze: build_result step in %s\n", dump); - } - error_: ; } /* Implicit barrier here */