commit 81cc892569427778601a561342aaf9c1a2e6bb4f
parent 9e324afb0326ccebe92cb164c15aaa2f54e744a4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 9 Dec 2021 15:56:55 +0100
Print the time spent to gather the green functions
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/sdis_solve_probe_Xd.h b/src/sdis_solve_probe_Xd.h
@@ -332,10 +332,16 @@ XD(solve_probe)
/* Setup the green function */
if(out_green) {
+ time_current(&time0);
+
res = gather_green_functions
(scn, rng_proxy, per_thread_green, per_thread_acc_time, &green);
if(res != RES_OK) goto error;
+ time_sub(&time0, time_current(&time1), &time0);
+ time_dump(&time0, TIME_ALL, NULL, buf, sizeof(buf));
+ log_info(scn->dev, "Green functions gathered in %s.\n", buf);
+
/* Return a green function only on master process */
if(!is_master_process) {
SDIS(green_function_ref_put(green));