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

« back to all changes in this revision

Viewing changes to lib/gpu/lal_soft.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:
53
53
    virial[i]=(acctyp)0;
54
54
  
55
55
  if (ii<inum) {
56
 
    const __global int *nbor, *list_end;
 
56
    int nbor, nbor_end;
57
57
    int i, numj;
58
58
    __local int n_stride;
59
59
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
60
 
              n_stride,list_end,nbor);
 
60
              n_stride,nbor_end,nbor);
61
61
  
62
62
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
63
63
    int itype=ix.w;
64
64
 
65
65
    numtyp factor_lj;
66
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
66
    for ( ; nbor<nbor_end; nbor+=n_stride) {
67
67
  
68
 
      int j=*nbor;
 
68
      int j=dev_packed[nbor];
69
69
      factor_lj = sp_lj[sbmask(j)];
70
70
      j &= NEIGHMASK;
71
71
 
141
141
  __syncthreads();
142
142
  
143
143
  if (ii<inum) {
144
 
    const __global int *nbor, *list_end;
 
144
    int nbor, nbor_end;
145
145
    int i, numj;
146
146
    __local int n_stride;
147
147
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
148
 
              n_stride,list_end,nbor);
 
148
              n_stride,nbor_end,nbor);
149
149
 
150
150
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
151
151
    int iw=ix.w;
152
152
    int itype=fast_mul((int)MAX_SHARED_TYPES,iw);
153
153
 
154
154
    numtyp factor_lj;
155
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
155
    for ( ; nbor<nbor_end; nbor+=n_stride) {
156
156
  
157
 
      int j=*nbor;
 
157
      int j=dev_packed[nbor];
158
158
      factor_lj = sp_lj[sbmask(j)];
159
159
      j &= NEIGHMASK;
160
160