Skip to content

Commit 186b828

Browse files
clang-format
1 parent 63dc630 commit 186b828

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

sycl/include/sycl/ext/oneapi/reduction.hpp

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,7 @@ void reduCGFuncForRangeFastAtomics(handler &CGH, KernelType KernelFunc,
10431043
});
10441044
}
10451045

1046-
template <class KernelName>
1047-
struct MainRangeFastReduce;
1046+
template <class KernelName> struct MainRangeFastReduce;
10481047
template <typename KernelName, typename KernelType, int Dims, class Reduction>
10491048
void reduCGFuncForRangeFastReduce(handler &CGH, KernelType KernelFunc,
10501049
const range<Dims> &Range,
@@ -1123,8 +1122,7 @@ void reduCGFuncForRangeFastReduce(handler &CGH, KernelType KernelFunc,
11231122
});
11241123
}
11251124

1126-
template <class KernelName>
1127-
struct MainRangeBasic;
1125+
template <class KernelName> struct MainRangeBasic;
11281126
template <typename KernelName, typename KernelType, int Dims, class Reduction>
11291127
void reduCGFuncForRangeBasic(handler &CGH, KernelType KernelFunc,
11301128
const range<Dims> &Range,
@@ -1259,8 +1257,7 @@ void reduCGFuncForRange(handler &CGH, KernelType KernelFunc,
12591257
}
12601258
}
12611259

1262-
template <class KernelName>
1263-
struct MainNDRangeBothFastReduceAndAtomics;
1260+
template <class KernelName> struct MainNDRangeBothFastReduceAndAtomics;
12641261
/// Implements a command group function that enqueues a kernel that calls
12651262
/// user's lambda function KernelFunc and also does one iteration of reduction
12661263
/// of elements computed in user's lambda function.
@@ -1292,8 +1289,7 @@ void reduCGFuncForNDRangeBothFastReduceAndAtomics(
12921289
});
12931290
}
12941291

1295-
template <class KernelName>
1296-
struct MainNDRangeFastAtomicsOnly;
1292+
template <class KernelName> struct MainNDRangeFastAtomicsOnly;
12971293
/// Implements a command group function that enqueues a kernel that calls
12981294
/// user's lambda function KernelFunc and also does one iteration of reduction
12991295
/// of elements computed in user's lambda function.
@@ -1368,8 +1364,7 @@ void reduCGFuncForNDRangeFastAtomicsOnly(
13681364
});
13691365
}
13701366

1371-
template <class KernelName>
1372-
struct MainNDRangeBothFastReduceOnly;
1367+
template <class KernelName> struct MainNDRangeBothFastReduceOnly;
13731368
/// Implements a command group function that enqueues a kernel that
13741369
/// calls user's lambda function and does one iteration of reduction
13751370
/// of elements in each of work-groups.
@@ -1410,8 +1405,7 @@ void reduCGFuncForNDRangeFastReduceOnly(
14101405
});
14111406
}
14121407

1413-
template <class KernelName>
1414-
struct MainNDRangeBasic;
1408+
template <class KernelName> struct MainNDRangeBasic;
14151409
/// Implements a command group function that enqueues a kernel that calls
14161410
/// user's lambda function \param KernelFunc and does one iteration of
14171411
/// reduction of elements in each of work-groups.
@@ -1490,8 +1484,7 @@ void reduCGFuncForNDRangeBasic(handler &CGH, bool IsPow2WG,
14901484
});
14911485
}
14921486

1493-
template <class KernelName>
1494-
struct AuxFastReduce;
1487+
template <class KernelName> struct AuxFastReduce;
14951488
/// Implements a command group function that enqueues a kernel that does one
14961489
/// iteration of reduction of elements in each of work-groups.
14971490
/// This version uses ext::oneapi::reduce() algorithm to reduce elements in each
@@ -1532,8 +1525,7 @@ void reduAuxCGFuncFastReduceImpl(handler &CGH, bool UniformWG,
15321525
});
15331526
}
15341527

1535-
template <class KernelName>
1536-
struct AuxNoFastReduceNorAtomic;
1528+
template <class KernelName> struct AuxNoFastReduceNorAtomic;
15371529
/// Implements a command group function that enqueues a kernel that does one
15381530
/// iteration of reduction of elements in each of work-groups.
15391531
/// This version uses tree-reduction algorithm to reduce elements in each
@@ -2050,8 +2042,7 @@ void reduCGFuncImplArray(
20502042
...);
20512043
}
20522044

2053-
template <class KernelName, class Accessor>
2054-
struct MainNDRangeMulti;
2045+
template <class KernelName, class Accessor> struct MainNDRangeMulti;
20552046
template <typename KernelName, typename KernelType, int Dims,
20562047
typename... Reductions, size_t... Is>
20572048
void reduCGFuncMulti(handler &CGH, KernelType KernelFunc,
@@ -2126,8 +2117,7 @@ void reduCGFuncMulti(handler &CGH, KernelType KernelFunc,
21262117
Rest(createReduOutAccs<false>(NWorkGroups, CGH, ReduTuple, ReduIndices));
21272118
}
21282119

2129-
template <class KernelName>
2130-
struct MainNDRangeAtomic64;
2120+
template <class KernelName> struct MainNDRangeAtomic64;
21312121
// Specialization for devices with the atomic64 aspect, which guarantees 64 (and
21322122
// temporarily 32) bit floating point support for atomic add.
21332123
// TODO 32 bit floating point atomics are eventually expected to be supported by
@@ -2384,8 +2374,7 @@ void reduCGFunc(handler &CGH, KernelType KernelFunc,
23842374
}
23852375
}
23862376

2387-
template <class KernelName, class Accessor>
2388-
struct AuxMulti;
2377+
template <class KernelName, class Accessor> struct AuxMulti;
23892378
template <typename KernelName, typename KernelType, typename... Reductions,
23902379
size_t... Is>
23912380
size_t reduAuxCGFunc(handler &CGH, size_t NWorkItems, size_t MaxWGSize,

0 commit comments

Comments
 (0)