diff --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg --- a/openmp/runtime/test/lit.cfg +++ b/openmp/runtime/test/lit.cfg @@ -100,6 +100,13 @@ if config.operating_system in ['Linux', 'Windows']: config.available_features.add('affinity') +import multiprocessing +try: + if multiprocessing.cpu_count() > 1: + config.available_features.add('multicpu') +except NotImplementedError: + pass + # to run with icc INTEL_LICENSE_FILE must be set if 'INTEL_LICENSE_FILE' in os.environ: config.environment['INTEL_LICENSE_FILE'] = os.environ['INTEL_LICENSE_FILE'] diff --git a/openmp/runtime/test/ompt/teams/parallel_team.c b/openmp/runtime/test/ompt/teams/parallel_team.c --- a/openmp/runtime/test/ompt/teams/parallel_team.c +++ b/openmp/runtime/test/ompt/teams/parallel_team.c @@ -1,5 +1,5 @@ // RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s -// REQUIRES: ompt +// REQUIRES: ompt, multicpu // UNSUPPORTED: gcc #include "callback.h" diff --git a/openmp/runtime/test/ompt/teams/serial_teams.c b/openmp/runtime/test/ompt/teams/serial_teams.c --- a/openmp/runtime/test/ompt/teams/serial_teams.c +++ b/openmp/runtime/test/ompt/teams/serial_teams.c @@ -1,5 +1,5 @@ // RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s -// REQUIRES: ompt +// REQUIRES: ompt, multicpu // UNSUPPORTED: gcc #include "callback.h"