From 61b07d95c74ae1acb8d219bea8e4328e61c2f048 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Wed, 15 May 2024 12:26:41 +0200 Subject: [PATCH] Ensure that the devices array exists also when not using MAGMA --- src/cluster/cluster.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cluster/cluster.cpp b/src/cluster/cluster.cpp index e31bcbd4..17889133 100644 --- a/src/cluster/cluster.cpp +++ b/src/cluster/cluster.cpp @@ -110,6 +110,9 @@ void cluster(const string& config_file, const string& data_file, const string& o delete logger; return; } +#else + int *devices = new int[1]; + devices[0] = -1; #endif // the following only happens on MPI process 0 if (mpidata->rank == 0) { -- GitLab