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

« back to all changes in this revision

Viewing changes to lib/gpu/lal_lj_coul_long.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:
65
65
    virial[i]=(acctyp)0;
66
66
  
67
67
  if (ii<inum) {
68
 
    const __global int *nbor, *list_end;
 
68
    int nbor, nbor_end;
69
69
    int i, numj;
70
70
    __local int n_stride;
71
71
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
72
 
              n_stride,list_end,nbor);
 
72
              n_stride,nbor_end,nbor);
73
73
  
74
74
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
75
75
    numtyp qtmp; fetch(qtmp,i,q_tex);
76
76
    int itype=ix.w;
77
77
 
78
 
    for ( ; nbor<list_end; nbor+=n_stride) {
79
 
      int j=*nbor;
 
78
    for ( ; nbor<nbor_end; nbor+=n_stride) {
 
79
      int j=dev_packed[nbor];
80
80
 
81
81
      numtyp factor_lj, factor_coul;
82
82
      factor_lj = sp_lj[sbmask(j)];
183
183
  __syncthreads();
184
184
  
185
185
  if (ii<inum) {
186
 
    const __global int *nbor, *list_end;
 
186
    int nbor, nbor_end;
187
187
    int i, numj;
188
188
    __local int n_stride;
189
189
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
190
 
              n_stride,list_end,nbor);
 
190
              n_stride,nbor_end,nbor);
191
191
  
192
192
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
193
193
    numtyp qtmp; fetch(qtmp,i,q_tex);
194
194
    int iw=ix.w;
195
195
    int itype=fast_mul((int)MAX_SHARED_TYPES,iw);
196
196
 
197
 
    for ( ; nbor<list_end; nbor+=n_stride) {
198
 
      int j=*nbor;
 
197
    for ( ; nbor<nbor_end; nbor+=n_stride) {
 
198
      int j=dev_packed[nbor];
199
199
 
200
200
      numtyp factor_lj, factor_coul;
201
201
      factor_lj = sp_lj[sbmask(j)];