Skip to content

Commit

Permalink
trsv: workaround intel/19.0.4 interal compiler error
Browse files Browse the repository at this point in the history
addresses issue kokkos/kokkos-kernels#607 reported by @mwglass
replace /= compound assignment operators
  • Loading branch information
ndellingwood committed Feb 19, 2020
1 parent c7e9205 commit 4ef6a8e
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ lowerTriSolveCsr (RangeMultiVectorType X,
}
} // for each entry A_rc in the current row r
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(r, j) /= A_rr;
X(r, j) = X(r, j) / A_rr;
}
} // for each row r
}
Expand Down Expand Up @@ -250,7 +250,7 @@ upperTriSolveCsr (RangeMultiVectorType X,
}
} // for each entry A_rc in the current row r
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(r, j) /= A_rr;
X(r, j) = X(r, j) / A_rr;
}
} // for each row r

Expand All @@ -272,7 +272,7 @@ upperTriSolveCsr (RangeMultiVectorType X,
}
} // for each entry A_rc in the current row r
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(r, j) /= A_rr;
X(r, j) = X(r, j) / A_rr;
}
} // last iteration: r = 0
}
Expand Down Expand Up @@ -395,7 +395,7 @@ upperTriSolveCsc (RangeMultiVectorType X,
}
} // for each entry A_rc in the current column c
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(c, j) /= A_cc;
X(c, j) = X(c, j) / A_cc;
}
} // for each column c

Expand All @@ -421,7 +421,7 @@ upperTriSolveCsc (RangeMultiVectorType X,
}
} // for each entry A_rc in the current column c
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(c, j) /= A_cc;
X(c, j) = X(c, j) / A_cc;
}
}
}
Expand Down Expand Up @@ -584,7 +584,7 @@ upperTriSolveCscConj (RangeMultiVectorType X,
}
} // for each entry A_rc in the current column c
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(c, j) /= A_cc;
X(c, j) = X(c, j) / A_cc;
}
} // for each column c

Expand All @@ -610,7 +610,7 @@ upperTriSolveCscConj (RangeMultiVectorType X,
}
} // for each entry A_rc in the current column c
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(c, j) /= A_cc;
X(c, j) = X(c, j) / A_cc;
}
}
}
Expand Down Expand Up @@ -662,7 +662,7 @@ lowerTriSolveCsc (RangeMultiVectorType X,
}
} // for each entry A_rc in the current column c
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(c, j) /= A_cc;
X(c, j) = X(c, j) / A_cc;
}
} // for each column c
}
Expand Down Expand Up @@ -754,7 +754,7 @@ lowerTriSolveCscConj (RangeMultiVectorType X,
}
} // for each entry A_rc in the current column c
for (local_ordinal_type j = 0; j < numVecs; ++j) {
X(c, j) /= A_cc;
X(c, j) = X(c, j) / A_cc;
}
} // for each column c
}
Expand Down

0 comments on commit 4ef6a8e

Please sign in to comment.