brintos

brintos / llvm-project-archived public Read only

0
0
Text · 419 B · 5f848ac Raw
22 lines · c
1// RUN: %libomp-compile && env KMP_AFFINITY=disabled KMP_TOPOLOGY_METHOD=hwloc %libomp-run2// REQUIRES: hwloc3#include <stdio.h>4#include <stdlib.h>5 6// Test will assert() without fix7int test_affinity_disabled_plus_hwloc() {8  #pragma omp parallel9  {}10  return 1;11}12 13int main(int argc, char **argv) {14  int i, j;15  int failed = 0;16 17  if (!test_affinity_disabled_plus_hwloc()) {18    failed = 1;19  }20  return failed;21}22