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

« back to all changes in this revision

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