Fixing some bugs when using multiple GPU styles hybrid.

This commit is contained in:
W. Michael Brown
2011-03-01 17:45:14 -05:00
parent 3e6ab71fa7
commit fe88e353d5
5 changed files with 12 additions and 7 deletions

View File

@ -114,7 +114,7 @@ int * ChargeGPUMemoryT::reset_nbors(const int nall, const int inum, int *ilist,
nbor_time_avail=true;
int mn=nbor->max_nbor_loop(inum,numj);
int mn=nbor->max_nbor_loop(inum,numj,ilist);
resize_atom(inum,nall,success);
resize_local(inum,mn,success);
if (!success)
@ -171,6 +171,7 @@ void ChargeGPUMemoryT::compute(const int f_ago, const int inum_full,
bool &success, double *host_q) {
acc_timers();
if (inum_full==0) {
host_start=0;
zero_timers();
return;
}
@ -213,6 +214,7 @@ int * ChargeGPUMemoryT::compute(const int ago, const int inum_full,
double *host_q) {
acc_timers();
if (inum_full==0) {
host_start=0;
zero_timers();
return NULL;
}