Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 1, 2024
1 parent 620f4df commit ccdcbb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/cunumeric/execution_policy/reduction/scalar_reduction.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ static __global__ void __launch_bounds__(1, 1) copy_kernel(Buffer result, RedAcc
template <class LG_OP, class Tag>
struct ScalarReductionPolicy<VariantKind::GPU, LG_OP, Tag> {
template <class AccessorRD, class LHS, class Kernel>
void __attribute__((visibility("hidden"))) operator()(size_t volume,
AccessorRD& out,
const LHS& identity,
Kernel&& kernel)
void __attribute__((visibility("hidden"))) operator()(
size_t volume, AccessorRD & out, const LHS & identity, Kernel && kernel)
{
if (0 == volume) return;

Expand Down
2 changes: 1 addition & 1 deletion src/cunumeric/random/philox.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Philox_2x32 {
// This syntax is only supported on >= c++17
const float scale = 0x1.p-32; // 2^-32
#else
const float scale = 0.00000000023283064365386962890625;
const float scale = 0.00000000023283064365386962890625;
#endif
return (bits * scale);
}
Expand Down
2 changes: 1 addition & 1 deletion src/cunumeric/random/rand_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "cunumeric/random/philox.h"

#define HI_BITS(x) (static_cast<unsigned>((x) >> 32))
#define LO_BITS(x) (static_cast<unsigned>((x)&0x00000000FFFFFFFF))
#define LO_BITS(x) (static_cast<unsigned>((x) & 0x00000000FFFFFFFF))

namespace cunumeric {

Expand Down

0 comments on commit ccdcbb8

Please sign in to comment.