We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62a2bad commit e04706dCopy full SHA for e04706d
src/Genten_MixedFormatOps.cpp
@@ -741,7 +741,6 @@ struct MTTKRP_Dense_Perm_Kernel {
741
742
/*const*/ ttb_indx nd = u.ndims();
743
/*const*/ ttb_indx nc = u.ncomponents();
744
- /*const*/ ttb_indx ne = X.numel();
745
static const bool is_gpu = Genten::is_gpu_space<ExecSpace>::value;
746
static const ttb_indx FacBlockSize = FBS;
747
static const ttb_indx VectorSize = is_gpu ? VS : 1;
@@ -853,7 +852,7 @@ struct MTTKRP_Dense_Perm_Kernel {
853
852
854
tmp.load(&(u.weights(j))); // NB: repeated read
855
tmp *= x_val;
856
- for (int m = 0; m < nd; ++m) {
+ for (ttb_indx m = 0; m < nd; ++m) {
857
if (m != n)
858
tmp *= &(u[m].entry(sub[m], j));
859
}
0 commit comments