Skip to content
Snippets Groups Projects
Commit 3861b84f authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Do not use PPM in check programs if USE_MPI is not defined.

This is the first step towards building serial versions of tests also when MPI is enabled.
parent a500a82c
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -16,10 +16,10 @@
#ifdef USE_MPI
#include <mpi.h>
#include <yaxt.h>
#endif
#ifdef HAVE_PPM_CORE
#include <ppm/ppm.h>
#endif
#endif
#include "cdi.h"
#include "error.h"
......
......@@ -13,7 +13,7 @@
#endif
#include "dmemory.h"
#ifdef HAVE_PPM_CORE
#if defined USE_MPI && defined HAVE_PPM_CORE
#include <ppm/ppm_uniform_partition.h>
#include <core/ppm_combinatorics.h>
#endif
......
......@@ -9,7 +9,7 @@
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_PPM_CORE
#if defined USE_MPI && defined HAVE_PPM_CORE
#include <ppm/ppm_uniform_partition.h>
#include <core/ppm_combinatorics.h>
#endif
......@@ -258,7 +258,7 @@ PPM_prime_factorization_32(uint32_t n, uint32_t **factors)
#endif
#ifndef HAVE_PPM_CORE
#if !defined USE_MPI || !defined HAVE_PPM_CORE
static char repeatable_rand_state[31 * sizeof(long)];
long
......
......@@ -81,7 +81,7 @@ int PPM_prime_factorization_32(uint32_t n, uint32_t **factors);
#endif
#ifdef HAVE_PPM_CORE
#if defined USE_MPI && defined HAVE_PPM_CORE
#include <ppm/ppm.h>
#include <core/ppm_random.h>
#ifdef _OPENMP
......
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