message: Only rank 0 creates files
  Previously all ranks attempted to create files which could cause
  a failure to make files error.
diff: #include "RAJAPerfSuite.hpp"
  #include "OutputUtils.hpp"
  +#ifdef RAJA_PERFSUITE_ENABLE_MPI
  +#include <mpi.h>
  +#endif
  +
  #include<cstdlib>
  #include<iostream>
  #include<iomanip>
  @@ -27,6 +31,16 @@ namespace rajaperf
  */
  std::string recursiveMkdir(const std::string& in_path)
  {
  + int rank = 0;
  +#ifdef RAJA_PERFSUITE_ENABLE_MPI
  + MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  +
  + // Processes wait for rank 0 to make the directories before proceeding
  + if (rank != 0) {
  + MPI_Barrier(MPI_COMM_WORLD);
  + }
  +#endif
  +
  std::string dir;
  std::string path = in_path;
  @@ -125,6 +139,13 @@ std::string recursiveMkdir(const std::string& in_path)
  delete[] path_buf;
  +#ifdef RAJA_PERFSUITE_ENABLE_MPI
  + // Rank 0 lets the other processes know it made the directories
  + if (rank == 0) {
  + MPI_Barrier(MPI_COMM_WORLD);
  + }
  +#endif
  +
  return outpath;
  }
  