Skip to content

Commit 78bbc03

Browse files
committed
Fix Windows build
1 parent 447c592 commit 78bbc03

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

larq_compute_engine/core/bgemm/kernels.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct BGemmKernel<ruy::Path::kStandardCpp, TBitpacked, MulParams> {
9797
RUY_DCHECK_LE(clamped_end_col, end_col);
9898
RUY_DCHECK_LE(end_col - clamped_end_col, RhsLayout::kCols);
9999

100-
RUY_DCHECK_EQ(dst->layout.order, Order::kColMajor);
100+
RUY_DCHECK_EQ(dst->layout.order, ruy::Order::kColMajor);
101101

102102
ruy::profiler::ScopeLabel label(
103103
"Binary Kernel (Standard Cpp), Bitpacked Output.");
@@ -145,8 +145,8 @@ template <typename DstScalar>
145145
struct BGemmKernel<ruy::Path::kNeon, DstScalar,
146146
BinaryMulParams<std::int32_t, DstScalar>> {
147147
Tuning tuning = Tuning::kAuto;
148-
using LhsLayout = FixedKernelLayout<Order::kColMajor, 4, 4>;
149-
using RhsLayout = FixedKernelLayout<Order::kColMajor, 4, 4>;
148+
using LhsLayout = FixedKernelLayout<ruy::Order::kColMajor, 4, 4>;
149+
using RhsLayout = FixedKernelLayout<ruy::Order::kColMajor, 4, 4>;
150150
explicit BGemmKernel(Tuning tuning_) : tuning(tuning_) {}
151151
void Run(const ruy::PMat<TBitpacked>& lhs, const ruy::PMat<TBitpacked>& rhs,
152152
const BinaryMulParams<std::int32_t, DstScalar>& mul_params,
@@ -176,8 +176,8 @@ template <typename DstScalar>
176176
struct BGemmKernel<ruy::Path::kNeon, DstScalar,
177177
BinaryMulParams<std::int16_t, DstScalar>> {
178178
Tuning tuning = Tuning::kAuto;
179-
using LhsLayout = FixedKernelLayout<Order::kColMajor, 4, 8>;
180-
using RhsLayout = FixedKernelLayout<Order::kColMajor, 4, 4>;
179+
using LhsLayout = FixedKernelLayout<ruy::Order::kColMajor, 4, 8>;
180+
using RhsLayout = FixedKernelLayout<ruy::Order::kColMajor, 4, 4>;
181181
explicit BGemmKernel(Tuning tuning_) : tuning(tuning_) {}
182182
void Run(const ruy::PMat<TBitpacked>& lhs, const ruy::PMat<TBitpacked>& rhs,
183183
const BinaryMulParams<std::int16_t, DstScalar>& mul_params,
@@ -200,8 +200,8 @@ template <typename DstScalar>
200200
struct BGemmKernel<ruy::Path::kNeon, DstScalar,
201201
BinaryMulParams<std::int32_t, DstScalar>> {
202202
Tuning tuning = Tuning::kAuto;
203-
using LhsLayout = FixedKernelLayout<Order::kColMajor, 4, 4>;
204-
using RhsLayout = FixedKernelLayout<Order::kColMajor, 4, 4>;
203+
using LhsLayout = FixedKernelLayout<ruy::Order::kColMajor, 4, 4>;
204+
using RhsLayout = FixedKernelLayout<ruy::Order::kColMajor, 4, 4>;
205205
explicit BGemmKernel(Tuning tuning_) : tuning(tuning_) {}
206206
void Run(const ruy::PMat<TBitpacked>& lhs, const ruy::PMat<TBitpacked>& rhs,
207207
const BinaryMulParams<std::int32_t, DstScalar>& mul_params,

larq_compute_engine/core/bgemm/kernels_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace core {
1010
namespace bgemm {
1111

1212
using namespace ruy;
13+
using ruy::Order; // To fix Windows build
1314

1415
using namespace bitpacking;
1516
using bconv2d::OutputTransform;

larq_compute_engine/core/bgemm/ruy_pack.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ namespace core {
3232
namespace bgemm {
3333

3434
using namespace ruy;
35+
using ruy::Order; // To fix Windows build
36+
3537
template <Path ThePath, typename FixedKernelLayout, Order SrcOrder>
3638
struct LceRuyPackImpl : PackImpl<ThePath, FixedKernelLayout, TBitpacked,
3739
TBitpacked, TBitpacked, SrcOrder> {};

0 commit comments

Comments
 (0)