Skip to content

Commit e9245f0

Browse files
committed
Please consider the following formatting changes
1 parent 743edc9 commit e9245f0

6 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎GPU/Common/GPUCommonDefAPI.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,5 +295,5 @@
295295
#define get_group_id(dim) iBlock
296296
#endif
297297

298-
// clang-format on
298+
// clang-format on
299299
#endif

‎GPU/Common/GPUCommonDouble.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static_assert(alignof(double) == 8, "the emulated double must match the alignmen
3434
template <>
3535
GPUhdi() constexpr double GPUCommonMath::Abs<double>(double x)
3636
{
37-
return double::fromBits(x.bits() & ~GPUCA_B64_SIGN);
37+
return double ::fromBits(x.bits() & ~GPUCA_B64_SIGN);
3838
}
3939

4040
// metal::fabs is not constant-evaluable, so this also fails to compile if the

‎GPU/Common/GPUCommonMath.h‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,15 @@ GPUhdi() constexpr int32_t GPUCommonMath::Abs<int32_t>(int32_t x)
481481
// has the same size and alignment; the overloads keep the address space, which a
482482
// generic pointer would not carry into atomic_*_explicit.
483483
template <class T>
484-
GPUdi() threadgroup metal::atomic<T>* GPUCommonMathMetalAtomic(threadgroup T* p) { return reinterpret_cast<threadgroup metal::atomic<T>*>(p); }
484+
GPUdi() threadgroup metal::atomic<T>* GPUCommonMathMetalAtomic(threadgroup T* p)
485+
{
486+
return reinterpret_cast<threadgroup metal::atomic<T>*>(p);
487+
}
485488
template <class T>
486-
GPUdi() device metal::atomic<T>* GPUCommonMathMetalAtomic(T* p) { return (device metal::atomic<T>*)p; }
489+
GPUdi() device metal::atomic<T>* GPUCommonMathMetalAtomic(T* p)
490+
{
491+
return (device metal::atomic<T>*)p;
492+
}
487493
#endif
488494

489495
template <class S, class T>

‎GPU/GPUTracking/Base/GPUReconstructionKernelMacros.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@
9191
#define GPUCA_KRNL_LB(x_class, x_attributes, ...) GPUCA_KRNL(x_class, (REG, (GPUCA_M_CAT(GPUCA_LB_, GPUCA_M_KRNL_NAME(x_class))), GPUCA_M_STRIP(x_attributes)), __VA_ARGS__)
9292

9393
#endif // O2_GPU_GPURECONSTRUCTIONKERNELMACROS_H
94-
// clang-format on
94+
// clang-format on

‎GPU/GPUTracking/Base/metal/GPUReconstructionMetal.mm‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@
399399

400400
// the section is part of the mapped image, so it outlives the dispatch_data_t
401401
// and does not have to be copied
402-
dispatch_data_t blob = dispatch_data_create(p, sz, nullptr, ^{});
402+
dispatch_data_t blob = dispatch_data_create(p, sz, nullptr, ^{
403+
});
403404

404405
NSError* error = nil;
405406
mInternals->library = [mInternals->device newLibraryWithData:blob error:&error];

‎GPU/GPUTracking/TPCClusterFinder/CfChargePos.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ struct CfChargePos {
3838
// INVALID_CHARGE_POS below lives in the constant address space, which a
3939
// generic `this` does not reach in MSL.
4040
constexpr GPUhdi() CfChargePos(tpccf::Row row, tpccf::Pad pad, tpccf::TPCFragmentTime t) constant
41-
: gpad(tpcGlobalPadIdx(row, pad)), timePadded(t + GPUCF_PADDING_TIME)
41+
: gpad(tpcGlobalPadIdx(row, pad)),
42+
timePadded(t + GPUCF_PADDING_TIME)
4243
{
4344
}
4445
#endif

0 commit comments

Comments
 (0)