Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenMP] Fix ompx_dump_mapping_tables lit test #85753

Closed
wants to merge 5 commits into from

Conversation

nicebert
Copy link
Contributor

Fixes ompx_dump_mapping_tables test by only using one device after breaking built bots

nicebert and others added 4 commits March 18, 2024 04:43
This adds an API call ompx_dump_mapping_tables.
This allows users to debug the mapping tables and can be especially useful for unified shared memory applications to check if the code behaves in the way it should.
The implementation reuses code already present to dump mapping tables (in a debug setting).
Add void to  parameter list.

Co-authored-by: Joseph Huber <huberjn@outlook.com>
Co-authored-by: Joseph Huber <huberjn@outlook.com>
Fixes ompx_dump_mapping_tables test by only using one device after breaking built bots.
@llvmbot llvmbot added openmp:libomp OpenMP host runtime openmp:libomptarget OpenMP offload runtime labels Mar 19, 2024
Copy link

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff 703920d4138d02bde4f4bf70ba809b63bef25c37 ed507006215559655507af62fdd80f6766b75d70 -- openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp
View the diff from clang-format here.
diff --git a/openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp b/openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp
index 6b05cea73d..d928820462 100644
--- a/openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp
+++ b/openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp
@@ -9,7 +9,6 @@ int main() {
   int *a = new __int32_t[N];     // mapped and released from device 0
   int *b = new __int32_t[2 * N]; // mapped to device 0
 
-
   // clang-format off
   // CHECK: Mapping tables after target enter data:
   // CHECK-NEXT: omptarget device 0 info: OpenMP Host-Device pointer mappings after block

@nicebert nicebert closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomp OpenMP host runtime openmp:libomptarget OpenMP offload runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants