Skip to content

Commit bcb9634

Browse files
authored
[Offload][OpenMP] Tests require libc on GPU for printf (#155785)
These tests currently fail when libc is not configured to be built as they require printf to be available in target regions.
1 parent f4950f6 commit bcb9634

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

offload/test/mapping/map_ptr_and_star_global.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %libomptarget-compilexx-run-and-check-generic
22

3+
// REQUIRES: libc
4+
35
#include <omp.h>
46
#include <stdio.h>
57

offload/test/mapping/map_ptr_and_star_local.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %libomptarget-compilexx-run-and-check-generic
22

3+
// REQUIRES: libc
4+
35
#include <omp.h>
46
#include <stdio.h>
57

offload/test/mapping/map_ptr_and_subscript_global.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %libomptarget-compilexx-run-and-check-generic
22

3+
// REQUIRES: libc
4+
35
#include <omp.h>
46
#include <stdio.h>
57

offload/test/mapping/map_ptr_and_subscript_local.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %libomptarget-compilexx-run-and-check-generic
22

3+
// REQUIRES: libc
4+
35
#include <omp.h>
46
#include <stdio.h>
57

offload/test/mapping/map_structptr_and_member_global.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %libomptarget-compilexx-run-and-check-generic
22

3+
// REQUIRES: libc
4+
35
#include <omp.h>
46
#include <stdio.h>
57

offload/test/mapping/map_structptr_and_member_local.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %libomptarget-compilexx-run-and-check-generic
22

3+
// REQUIRES: libc
4+
35
#include <omp.h>
46
#include <stdio.h>
57

0 commit comments

Comments
 (0)