Skip to content

Commit

Permalink
Merge pull request #556 from JiabinYang/fix_prod_mat_env_a_cpu
Browse files Browse the repository at this point in the history
fix error in cpu mode
  • Loading branch information
amcadmus authored Apr 22, 2021
2 parents ddcb9d7 + 7f3802f commit f1bccb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void PdProdEnvMatAOpCPUForwardKernel(
const std::vector<int>& sec_r, data_t *p_em, data_t *p_em_deriv, data_t *p_rij, int *p_nlist,
const data_t *p_coord, const data_t *p_box, const data_t *avg, const data_t *std, const int *p_type)
{
for (size_t ff = 0; ff < 2; ++ff)
for (size_t ff = 0; ff < nsamples; ++ff)
{
data_t *em = p_em + ff * nloc * ndescrpt;
data_t *em_deriv = p_em_deriv + ff * nloc * ndescrpt * 3;
Expand Down

0 comments on commit f1bccb1

Please sign in to comment.