git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7575 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2012-01-25 15:31:54 +00:00
parent 5c71961c39
commit 6b1774dc20
151 changed files with 52317 additions and 59 deletions

View File

@ -464,8 +464,10 @@ void Neighbor::build_nbor_list(double **x, const int inum, const int host_inum,
ptr+=mn;
}
_gpu_bytes+=dev_host_nbor.row_bytes();
} else
} else {
dev_host_nbor.view(dev_nbor);
dev_host_numj.view(dev_nbor);
}
if (_alloc_packed) {
dev_packed.clear();
success=success && (dev_packed.alloc((mn+2)*_max_atoms,*dev,
@ -495,7 +497,7 @@ void Neighbor::build_nbor_list(double **x, const int inum, const int host_inum,
time_kernel.stop();
time_nbor.start();
if (_gpu_host)
if (inum<nt)
ucl_copy(host_nbor,dev_host_nbor,false);
time_nbor.stop();
}