From e50f1ece54099d321fccc36a307df0133ce8e5e8 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Fri, 20 Sep 2024 14:19:48 +0200 Subject: [PATCH] Finalize MAGMA in MPI process 0 --- src/cluster/cluster.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp index e7da6b93..1752b6ea 100644 --- a/src/cluster/cluster.cpp +++ b/src/cluster/cluster.cpp @@ -536,6 +536,10 @@ void cluster(const string& config_file, const string& data_file, const string& o delete sconf; delete gconf; +#ifdef USE_MAGMA + logger->log("INFO: Process " + to_string(mpidata->rank) + " finalizes MAGMA.\n"); + magma_finalize(); +#endif chrono::time_point<chrono::high_resolution_clock> t_end = chrono::high_resolution_clock::now(); elapsed = t_end - t_start; string message = "INFO: Calculation lasted " + to_string(elapsed.count()) + "s.\n"; -- GitLab