~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to lib/gpu/lal_dpd.cu

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
    virial[i]=(acctyp)0;
188
188
  
189
189
  if (ii<inum) {
190
 
    const __global int *nbor, *list_end;
191
 
    int i, numj;
 
190
    int i, numj, nbor, nbor_end;
192
191
    __local int n_stride;
193
192
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
194
 
              n_stride,list_end,nbor);
 
193
              n_stride,nbor_end,nbor);
195
194
  
196
195
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
197
196
    int itype=ix.w;
199
198
    int itag=iv.w;
200
199
 
201
200
    numtyp factor_dpd;
202
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
201
    for ( ; nbor<nbor_end; nbor+=n_stride) {
203
202
  
204
 
      int j=*nbor;
 
203
      int j=dev_packed[nbor];
205
204
      factor_dpd = sp_lj[sbmask(j)];
206
205
      j &= NEIGHMASK;
207
206
 
308
307
  __syncthreads();
309
308
  
310
309
  if (ii<inum) {
311
 
    const __global int *nbor, *list_end;
312
 
    int i, numj;
 
310
    int i, numj, nbor, nbor_end;
313
311
    __local int n_stride;
314
312
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
315
 
              n_stride,list_end,nbor);
 
313
              n_stride,nbor_end,nbor);
316
314
 
317
315
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
318
316
    int iw=ix.w;
321
319
    int itag=iv.w;
322
320
 
323
321
    numtyp factor_dpd;
324
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
322
    for ( ; nbor<nbor_end; nbor+=n_stride) {
325
323
  
326
 
      int j=*nbor;
 
324
      int j=dev_packed[nbor];
327
325
      factor_dpd = sp_lj[sbmask(j)];
328
326
      j &= NEIGHMASK;
329
327