Skip to content

Commit a1a4bcb

Browse files
committed
Clang-format
1 parent 793af09 commit a1a4bcb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

openmp/runtime/test/teams/teams_parallel_if.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ void test_api(int nteams, int nthreads, int par_if) {
2525
}
2626

2727
#pragma omp teams num_teams(nteams)
28-
#pragma omp parallel num_threads(nthreads) if(par_if)
28+
#pragma omp parallel num_threads(nthreads) if (par_if)
2929
{
3030
omp_id_t id = {omp_get_team_num(), omp_get_thread_num()};
3131
if (omp_get_num_teams() == expected_nteams &&
32-
omp_get_num_threads() == expected_nthreads &&
33-
id.team_num >= 0 && id.team_num < expected_nteams &&
34-
id.thread_num >= 0 && id.thread_num < expected_nthreads) {
32+
omp_get_num_threads() == expected_nthreads && id.team_num >= 0 &&
33+
id.team_num < expected_nteams && id.thread_num >= 0 &&
34+
id.thread_num < expected_nthreads) {
3535
int flat_id = id.thread_num + id.team_num * expected_nthreads;
3636
observed[flat_id] = id;
3737
}
@@ -40,8 +40,8 @@ void test_api(int nteams, int nthreads, int par_if) {
4040
for (int i = 0; i < expected_size; i++) {
4141
if (expected[i].team_num != observed[i].team_num ||
4242
expected[i].thread_num != observed[i].thread_num) {
43-
printf("failed at nteams=%d, nthreads=%d, par_if=%d\n",
44-
nteams, nthreads, par_if);
43+
printf("failed at nteams=%d, nthreads=%d, par_if=%d\n", nteams, nthreads,
44+
par_if);
4545
exit(EXIT_FAILURE);
4646
}
4747
}
@@ -53,7 +53,7 @@ void test_dist(int nteams, int nthreads, int par_if) {
5353
int index_sum_expected = ub * (ub + 1) / 2;
5454
int index_sum = 0;
5555
#pragma omp teams distribute parallel for num_teams(nteams) \
56-
num_threads(nthreads) if(par_if)
56+
num_threads(nthreads) if(par_if)
5757
for (int i = 1; i <= ub; i++)
5858
#pragma omp atomic update
5959
index_sum += i;

0 commit comments

Comments
 (0)