When OMP_PLACES contains an invalid value, the warning informs the user that the fallback is OMP_PLACES=threads, but the actual internal setting is OMP_PLACES=cores and is detected as such with KMP_SETTINGS=1. This patch informs the user that OMP_PLACES=cores is being used instead of OMP_PLACES=threads. Differential Revision: https://reviews.llvm.org/D95170
12 lines
251 B
C
12 lines
251 B
C
// RUN: %libomp-compile && env KMP_SETTINGS=1 OMP_PLACES=invalid %libomp-run 2>&1 | FileCheck %s
|
|
// CHECK-DAG: Effective settings
|
|
// CHECK: OMP_PLACES=
|
|
// CHECK-SAME: cores
|
|
// REQUIRES: affinity
|
|
|
|
int main() {
|
|
#pragma omp parallel
|
|
{}
|
|
return 0;
|
|
}
|