Skip to content

Commit e04706d

Browse files
committed
Fix -Wall warnings
1 parent 62a2bad commit e04706d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Genten_MixedFormatOps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,6 @@ struct MTTKRP_Dense_Perm_Kernel {
741741

742742
/*const*/ ttb_indx nd = u.ndims();
743743
/*const*/ ttb_indx nc = u.ncomponents();
744-
/*const*/ ttb_indx ne = X.numel();
745744
static const bool is_gpu = Genten::is_gpu_space<ExecSpace>::value;
746745
static const ttb_indx FacBlockSize = FBS;
747746
static const ttb_indx VectorSize = is_gpu ? VS : 1;
@@ -853,7 +852,7 @@ struct MTTKRP_Dense_Perm_Kernel {
853852

854853
tmp.load(&(u.weights(j))); // NB: repeated read
855854
tmp *= x_val;
856-
for (int m = 0; m < nd; ++m) {
855+
for (ttb_indx m = 0; m < nd; ++m) {
857856
if (m != n)
858857
tmp *= &(u[m].entry(sub[m], j));
859858
}

0 commit comments

Comments
 (0)