Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/FBGEMM.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoung Jin Kim <youki@microsoft.com>2019-06-21 20:40:34 +0300
committerYoung Jin Kim <youki@microsoft.com>2019-06-21 20:40:34 +0300
commitbc33ed9474b4f944dc04a579c25919778eceb9d5 (patch)
tree6cb59d1a871a06dbd31dc3b353adb24334892672
parentc4269a772d2a1124cadbfe5bf5876c7cf2c1d256 (diff)
Fix a compile error in assert
-rw-r--r--src/FbgemmFP16.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbgemmFP16.cc b/src/FbgemmFP16.cc
index 6d77fb1..f357966 100644
--- a/src/FbgemmFP16.cc
+++ b/src/FbgemmFP16.cc
@@ -214,7 +214,7 @@ void cblas_gemm_compute(
i_end = m;
for (auto m0 = i_begin; m0 < i_end; m0 += mb_max) {
int mb = std::min(mb_max, i_end - m0);
- assert(mb < KernelInfo::partition.size());
+ assert(mb < sizeof(KernelInfo::partition) / sizeof(KernelInfo::partition[0]));
for (auto k_ind = 0; k_ind < k; k_ind += Bp.blockRowSize()) {
// set up proper accumulation to avoid "Nan" problem
float beta_;