AMDGPU: Allow f16/bf16 for DS_READ_TR16_B64 gfx950 builtins (#118297)
[llvm-project.git] / openmp / runtime / test / affinity / bug-nested.c
blob4396182cbb47e6eee6c10556fd1911424713e07c
1 // RUN: %libomp-compile && env KMP_AFFINITY=compact %libomp-run
3 #include <stdio.h>
4 #include <stdint.h>
5 #include <omp.h>
6 #include "omp_testsuite.h"
8 int test_nested_affinity_bug() {
9 int a = 0;
10 omp_set_nested(1);
11 #pragma omp parallel num_threads(2) shared(a)
13 #pragma omp parallel num_threads(2) shared(a) proc_bind(close)
15 #pragma omp atomic
16 a++;
19 return 1;
22 int main() {
23 int i;
24 int num_failed = 0;
26 for (i = 0; i < REPETITIONS; i++) {
27 if (!test_nested_affinity_bug()) {
28 num_failed++;
31 return num_failed;