Skip to content
Snippets Groups Projects
Commit 61b07d95 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Ensure that the devices array exists also when not using MAGMA

parent d4b8259b
No related branches found
No related tags found
No related merge requests found
...@@ -110,6 +110,9 @@ void cluster(const string& config_file, const string& data_file, const string& o ...@@ -110,6 +110,9 @@ void cluster(const string& config_file, const string& data_file, const string& o
delete logger; delete logger;
return; return;
} }
#else
int *devices = new int[1];
devices[0] = -1;
#endif #endif
// the following only happens on MPI process 0 // the following only happens on MPI process 0
if (mpidata->rank == 0) { if (mpidata->rank == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment