Untested update of entire GPU library to use multiple threads per atom.

This commit is contained in:
W. Michael Brown
2011-04-14 17:25:55 -04:00
parent 2b37bf3d41
commit e27ca98bb8
30 changed files with 2135 additions and 784 deletions

View File

@ -57,6 +57,13 @@ int ChargeGPUMemoryT::init_atomic(const int nlocal, const int nall,
if (host_nlocal>0)
_gpu_host=1;
_threads_per_atom=device->threads_per_atom();
if (_threads_per_atom>1 && gpu_nbor==false) {
nbor->packing(true);
_nbor_data=&(nbor->dev_packed);
} else
_nbor_data=&(nbor->dev_nbor);
int success=device->init(*ans,true,false,nlocal,host_nlocal,nall,nbor,
maxspecial,_gpu_host,max_nbors,cell_size,false);
if (success!=0)