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

« back to all changes in this revision

Viewing changes to lib/gpu/lal_beck.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
 
154
154
  __syncthreads();
155
155
  
156
156
  if (ii<inum) {
157
 
    const __global int *nbor, *list_end;
 
157
    int nbor, nbor_end;
158
158
    int i, numj;
159
159
    __local int n_stride;
160
160
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
161
 
              n_stride,list_end,nbor);
 
161
              n_stride,nbor_end,nbor);
162
162
 
163
163
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
164
164
    int iw=ix.w;
165
165
    int itype=fast_mul((int)MAX_SHARED_TYPES,iw);
166
166
 
167
167
    numtyp factor_lj;
168
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
168
    for ( ; nbor<nbor_end; nbor+=n_stride) {
169
169
  
170
 
      int j=*nbor;
 
170
      int j=dev_packed[nbor];
171
171
      factor_lj = sp_lj[sbmask(j)];
172
172
      j &= NEIGHMASK;
173
173