[Openmp-commits] [llvm] [openmp] [OFFLOAD][OPENMP] 6.0 compatible interop interface (PR #143491)
via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jul 2 04:58:21 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- offload/include/PerThreadTable.h offload/include/OpenMP/InteropAPI.h offload/include/OpenMP/omp.h offload/include/PluginManager.h offload/include/Shared/APITypes.h offload/libomptarget/OffloadRTL.cpp offload/libomptarget/OpenMP/API.cpp offload/libomptarget/OpenMP/InteropAPI.cpp offload/libomptarget/PluginManager.cpp offload/plugins-nextgen/common/include/PluginInterface.h openmp/runtime/src/kmp.h openmp/runtime/src/kmp_barrier.cpp openmp/runtime/src/kmp_runtime.cpp openmp/runtime/src/kmp_tasking.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/offload/libomptarget/OpenMP/InteropAPI.cpp b/offload/libomptarget/OpenMP/InteropAPI.cpp
index 14b1f8580..2ecf3b599 100644
--- a/offload/libomptarget/OpenMP/InteropAPI.cpp
+++ b/offload/libomptarget/OpenMP/InteropAPI.cpp
@@ -292,7 +292,8 @@ int __tgt_interop_use(ident_t *LocRef, omp_interop_val_t *Interop,
if (Interop->interop_type == kmp_interop_type_targetsync) {
if (Deps) {
if (nowait) {
- DP("Warning: nowait flag on interop use with dependences not supported yet. "
+ DP("Warning: nowait flag on interop use with dependences not supported "
+ "yet. "
"Ignored\n");
nowait = false;
}
@@ -338,7 +339,6 @@ int __tgt_interop_release(ident_t *LocRef, omp_interop_val_t *Interop,
return Interop->release();
}
-
EXTERN int ompx_interop_add_completion_callback(omp_interop_val_t *Interop,
ompx_interop_cb_t *cb,
void *data) {
@@ -359,7 +359,6 @@ EXTERN int ompx_interop_add_completion_callback(omp_interop_val_t *Interop,
return omp_irc_success;
}
-
} // extern "C"
bool omp_interop_val_t::isCompatibleWith(int32_t InteropType,
``````````
</details>
https://github.com/llvm/llvm-project/pull/143491
More information about the Openmp-commits
mailing list