[Openmp-commits] [openmp] b49d3e5 - [OpenMP][Test] Make the output error message consistent with the comment
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Dec 13 18:08:45 PST 2022
Author: gonglingqin
Date: 2022-12-14T10:07:15+08:00
New Revision: b49d3e50e353e7ab58c2e6622f8cf78e8db7f51e
URL: https://github.com/llvm/llvm-project/commit/b49d3e50e353e7ab58c2e6622f8cf78e8db7f51e
DIFF: https://github.com/llvm/llvm-project/commit/b49d3e50e353e7ab58c2e6622f8cf78e8db7f51e.diff
LOG: [OpenMP][Test] Make the output error message consistent with the comment
Modify the error message output of affinity/kmp-affinity.c and
affinity/omp-places.c.
Differential Revision: https://reviews.llvm.org/D139803
Added:
Modified:
openmp/runtime/test/affinity/kmp-affinity.c
openmp/runtime/test/affinity/omp-places.c
Removed:
################################################################################
diff --git a/openmp/runtime/test/affinity/kmp-affinity.c b/openmp/runtime/test/affinity/kmp-affinity.c
index 9a74293d8bdeb..5ee492f5441c4 100644
--- a/openmp/runtime/test/affinity/kmp-affinity.c
+++ b/openmp/runtime/test/affinity/kmp-affinity.c
@@ -27,7 +27,7 @@ static int compare_places(const place_list_t *p1, const place_list_t *p2) {
topology_print_places(p1);
printf("\n");
printf("p2 places:\n");
- topology_print_places(p1);
+ topology_print_places(p2);
return EXIT_FAILURE;
}
}
diff --git a/openmp/runtime/test/affinity/omp-places.c b/openmp/runtime/test/affinity/omp-places.c
index 3b565b9fa3c84..cf9780890c173 100644
--- a/openmp/runtime/test/affinity/omp-places.c
+++ b/openmp/runtime/test/affinity/omp-places.c
@@ -23,7 +23,7 @@ static int compare_places(const place_list_t *p1, const place_list_t *p2) {
topology_print_places(p1);
printf("\n");
printf("p2 places:\n");
- topology_print_places(p1);
+ topology_print_places(p2);
return EXIT_FAILURE;
}
for (i = 0; i < p1->num_places; ++i) {
@@ -40,7 +40,7 @@ static int compare_places(const place_list_t *p1, const place_list_t *p2) {
topology_print_places(p1);
printf("\n");
printf("p2 places:\n");
- topology_print_places(p1);
+ topology_print_places(p2);
return EXIT_FAILURE;
}
}
More information about the Openmp-commits
mailing list