[llvm] [Offload][OMPT][NFC] Add test for `host_op_id` consistency (PR #201144)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 04:15:34 PDT 2026


Jan =?utf-8?q?André?= Reuter <j.reuter at fz-juelich.de>,
Jan =?utf-8?q?André?= Reuter <j.reuter at fz-juelich.de>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/201144 at github.com>


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions c -- offload/test/ompt/host_op_id_emi.c --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/offload/test/ompt/host_op_id_emi.c b/offload/test/ompt/host_op_id_emi.c
index aac2ddbe5..43242e06e 100644
--- a/offload/test/ompt/host_op_id_emi.c
+++ b/offload/test/ompt/host_op_id_emi.c
@@ -36,7 +36,8 @@ int main(void) {
   assert(Status == 0 && "H2D memory copy operation failed.\n");
 
   printf("Testing: Device to Device\n");
-  Status = omp_target_memcpy(DevPtr2, DevPtr, sizeof(int), 0, 0, Device, Device);
+  Status =
+      omp_target_memcpy(DevPtr2, DevPtr, sizeof(int), 0, 0, Device, Device);
   assert(Status == 0 && "D2D memory copy operation failed.\n");
 
   printf("Testing: Device to Host\n");

``````````

</details>


https://github.com/llvm/llvm-project/pull/201144


More information about the llvm-commits mailing list