[Openmp-commits] [openmp] [WIP] [OpenMP] Add unit tests for nextgen plugins (PR #74398)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Dec 15 00:06:16 PST 2023


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 33b54f01fe32030ff60d661a7a951e33360f82ee d116416b616305d2e58d73618622a022d4587015 -- openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp
``````````

</details>

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

``````````diff
diff --git a/openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp b/openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp
index 8eb13999e2..635bd1637c 100644
--- a/openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp
+++ b/openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp
@@ -78,8 +78,8 @@ TEST(NextgenPluginsTest, PluginAsyncAlloc) {
   // Platforms like x86_64 don't support it
   if (__tgt_rtl_init_async_info(DEVICE_ID, &info) == OFFLOAD_SUCCESS) {
     // Allocate memory
-    void *device_ptr =
-        __tgt_rtl_data_alloc(DEVICE_ID, var_size, nullptr, TARGET_ALLOC_DEFAULT);
+    void *device_ptr = __tgt_rtl_data_alloc(DEVICE_ID, var_size, nullptr,
+                                            TARGET_ALLOC_DEFAULT);
 
     // Check that the result is not null
     EXPECT_NE(device_ptr, nullptr);
@@ -104,8 +104,8 @@ TEST(NextgenPluginsTest, PluginAsyncAlloc) {
     EXPECT_EQ(host_value, test_value);
 
     // Cleanup data
-    EXPECT_EQ(OFFLOAD_SUCCESS,
-              __tgt_rtl_data_delete(DEVICE_ID, device_ptr, TARGET_ALLOC_DEFAULT));
+    EXPECT_EQ(OFFLOAD_SUCCESS, __tgt_rtl_data_delete(DEVICE_ID, device_ptr,
+                                                     TARGET_ALLOC_DEFAULT));
   }
 }
 

``````````

</details>


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


More information about the Openmp-commits mailing list