Skip to content

Commit ccdcbb8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 620f4df commit ccdcbb8

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/cunumeric/execution_policy/reduction/scalar_reduction.cuh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ static __global__ void __launch_bounds__(1, 1) copy_kernel(Buffer result, RedAcc
4747
template <class LG_OP, class Tag>
4848
struct ScalarReductionPolicy<VariantKind::GPU, LG_OP, Tag> {
4949
template <class AccessorRD, class LHS, class Kernel>
50-
void __attribute__((visibility("hidden"))) operator()(size_t volume,
51-
AccessorRD& out,
52-
const LHS& identity,
53-
Kernel&& kernel)
50+
void __attribute__((visibility("hidden"))) operator()(
51+
size_t volume, AccessorRD & out, const LHS & identity, Kernel && kernel)
5452
{
5553
if (0 == volume) return;
5654

src/cunumeric/random/philox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Philox_2x32 {
118118
// This syntax is only supported on >= c++17
119119
const float scale = 0x1.p-32; // 2^-32
120120
#else
121-
const float scale = 0.00000000023283064365386962890625;
121+
const float scale = 0.00000000023283064365386962890625;
122122
#endif
123123
return (bits * scale);
124124
}

src/cunumeric/random/rand_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "cunumeric/random/philox.h"
2121

2222
#define HI_BITS(x) (static_cast<unsigned>((x) >> 32))
23-
#define LO_BITS(x) (static_cast<unsigned>((x)&0x00000000FFFFFFFF))
23+
#define LO_BITS(x) (static_cast<unsigned>((x) & 0x00000000FFFFFFFF))
2424

2525
namespace cunumeric {
2626

0 commit comments

Comments
 (0)