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

« back to all changes in this revision

Viewing changes to lib/gpu/lal_re_squared_lj.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:
172
172
    virial[i]=(acctyp)0;
173
173
 
174
174
  if (ii<inum) {
175
 
    const __global int *nbor, *nbor_end;
 
175
    int nbor, nbor_end;
176
176
    int i, numj;
177
177
    __local int n_stride;
178
178
    nbor_info_e(dev_nbor,stride,t_per_atom,ii,offset,i,numj,
199
199
 
200
200
    numtyp factor_lj;
201
201
    for ( ; nbor<nbor_end; nbor+=n_stride) {
202
 
      int j=*nbor;
 
202
      int j=dev_nbor[nbor];
203
203
      factor_lj = sp_lj[sbmask(j)];
204
204
      j &= NEIGHMASK;
205
205
 
424
424
    virial[i]=(acctyp)0;
425
425
 
426
426
  if (ii<inum) {
427
 
    const __global int *nbor, *nbor_end;
 
427
    int nbor, nbor_end;
428
428
    int j, numj;
429
429
    __local int n_stride;
430
430
    nbor_info_e(dev_nbor,stride,t_per_atom,ii,offset,j,numj,
435
435
 
436
436
    numtyp factor_lj;
437
437
    for ( ; nbor<nbor_end; nbor+=n_stride) {
438
 
      int i=*nbor;
 
438
      int i=dev_nbor[nbor];
439
439
      factor_lj = sp_lj[sbmask(i)];
440
440
      i &= NEIGHMASK;
441
441
 
616
616
    virial[i]=(acctyp)0;
617
617
  
618
618
  if (ii<inum) {
619
 
    const __global int *nbor, *list_end;
 
619
    int nbor, nbor_end;
620
620
    int i, numj;
621
621
    __local int n_stride;
622
622
    nbor_info_e(dev_ij,stride,t_per_atom,ii,offset,i,numj,
623
 
                n_stride,list_end,nbor);
 
623
                n_stride,nbor_end,nbor);
624
624
  
625
625
    numtyp4 ix; fetch4(ix,i,pos_tex);
626
626
    int itype=ix.w;
627
627
 
628
628
    numtyp factor_lj;
629
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
629
    for ( ; nbor<nbor_end; nbor+=n_stride) {
630
630
  
631
 
      int j=*nbor;
 
631
      int j=dev_ij[nbor];
632
632
      factor_lj = sp_lj[sbmask(j)];
633
633
      j &= NEIGHMASK;
634
634
 
710
710
  __syncthreads();
711
711
  
712
712
  if (ii<inum) {
713
 
    const __global int *nbor, *list_end;
 
713
    int nbor, nbor_end;
714
714
    int i, numj;
715
715
    __local int n_stride;
716
716
    nbor_info_e(dev_ij,stride,t_per_atom,ii,offset,i,numj,
717
 
                n_stride,list_end,nbor);
 
717
                n_stride,nbor_end,nbor);
718
718
 
719
719
    numtyp4 ix; fetch4(ix,i,pos_tex);
720
720
    int iw=ix.w;
721
721
    int itype=fast_mul((int)MAX_SHARED_TYPES,iw);
722
722
 
723
723
    numtyp factor_lj;
724
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
724
    for ( ; nbor<nbor_end; nbor+=n_stride) {
725
725
  
726
 
      int j=*nbor;
 
726
      int j=dev_ij[nbor];
727
727
      factor_lj = sp_lj[sbmask(j)];
728
728
      j &= NEIGHMASK;
729
729