[Openmp-commits] [llvm] [openmp] [OpenMP] Change build of OpenMP device runtime to be a separate runtime (PR #136729)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jul 31 08:01:54 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 h,cpp -- openmp/device/include/Allocator.h openmp/device/include/Configuration.h openmp/device/include/Debug.h openmp/device/include/DeviceTypes.h openmp/device/include/DeviceUtils.h openmp/device/include/Interface.h openmp/device/include/LibC.h openmp/device/include/Mapping.h openmp/device/include/Profiling.h openmp/device/include/State.h openmp/device/include/Synchronization.h openmp/device/include/Workshare.h openmp/device/src/Allocator.cpp openmp/device/src/Configuration.cpp openmp/device/src/Debug.cpp openmp/device/src/DeviceUtils.cpp openmp/device/src/Kernel.cpp openmp/device/src/LibC.cpp openmp/device/src/Mapping.cpp openmp/device/src/Misc.cpp openmp/device/src/Parallelism.cpp openmp/device/src/Profiling.cpp openmp/device/src/Reduction.cpp openmp/device/src/State.cpp openmp/device/src/Stub.cpp openmp/device/src/Synchronization.cpp openmp/device/src/Tasking.cpp openmp/device/src/Workshare.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/device/src/Workshare.cpp b/openmp/device/src/Workshare.cpp
index a8759307b..1c2c5b27f 100644
--- a/openmp/device/src/Workshare.cpp
+++ b/openmp/device/src/Workshare.cpp
@@ -907,16 +907,15 @@ public:
#define OMP_LOOP_ENTRY(BW, TY) \
[[gnu::flatten, clang::always_inline]] void \
- __kmpc_distribute_for_static_loop##BW( \
- IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters, \
- TY num_threads, TY block_chunk, TY thread_chunk) { \
+ __kmpc_distribute_for_static_loop##BW( \
+ IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters, \
+ TY num_threads, TY block_chunk, TY thread_chunk) { \
ompx::StaticLoopChunker<TY>::DistributeFor( \
loc, fn, arg, num_iters, num_threads, block_chunk, thread_chunk); \
} \
[[gnu::flatten, clang::always_inline]] void \
- __kmpc_distribute_static_loop##BW(IdentTy *loc, void (*fn)(TY, void *), \
- void *arg, TY num_iters, \
- TY block_chunk) { \
+ __kmpc_distribute_static_loop##BW(IdentTy *loc, void (*fn)(TY, void *), \
+ void *arg, TY num_iters, TY block_chunk) { \
ompx::StaticLoopChunker<TY>::Distribute(loc, fn, arg, num_iters, \
block_chunk); \
} \
``````````
</details>
https://github.com/llvm/llvm-project/pull/136729
More information about the Openmp-commits
mailing list