Adding a capability for neighbor builds to openCL builds.

This commit is contained in:
W. Michael Brown
2011-10-26 17:42:21 -04:00
parent 41e7406f3e
commit db8cc02e18
7 changed files with 67 additions and 55 deletions

View File

@ -160,6 +160,10 @@ int DeviceT::init(Answer<numtyp,acctyp> &ans, const bool charge,
gpu_nbor=1;
else if (_gpu_mode==Device<numtyp,acctyp>::GPU_HYB_NEIGH)
gpu_nbor=2;
#ifdef USE_OPENCL
if (gpu_nbor==1)
gpu_nbor=2;
#endif
if (_init_count==0) {
// Initialize atom and nbor data