Commit c55009a0 authored by Trung Nguyen's avatar Trung Nguyen
Browse files

Enabled neighbor list build on the device with pair_style hybrid and hybrid/overlay

parent 89886032
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -70,6 +70,12 @@ int BaseAtomicT::init_atomic(const int nlocal, const int nall,
  if (success!=0)
    return success;

  success = device->init_nbor(nbor,nlocal,host_nlocal,nall,maxspecial,_gpu_host,
                  max_nbors,cell_size,false,_threads_per_atom);

  if (success!=0)
    return success;

  ucl_device=device->gpu;
  atom=&device->atom;

+6 −0
Original line number Diff line number Diff line
@@ -71,6 +71,12 @@ int BaseChargeT::init_atomic(const int nlocal, const int nall,
  if (success!=0)
    return success;

  success = device->init_nbor(nbor,nlocal,host_nlocal,nall,maxspecial,_gpu_host,
                  max_nbors,cell_size,false,_threads_per_atom);

  if (success!=0)
    return success;

  ucl_device=device->gpu;
  atom=&device->atom;

+6 −0
Original line number Diff line number Diff line
@@ -72,6 +72,12 @@ int BaseDipoleT::init_atomic(const int nlocal, const int nall,
  if (success!=0)
    return success;

  success = device->init_nbor(nbor,nlocal,host_nlocal,nall,maxspecial,_gpu_host,
                  max_nbors,cell_size,false,_threads_per_atom);

  if (success!=0)
    return success;

  ucl_device=device->gpu;
  atom=&device->atom;

+6 −0
Original line number Diff line number Diff line
@@ -71,6 +71,12 @@ int BaseDPDT::init_atomic(const int nlocal, const int nall,
  if (success!=0)
    return success;

  success = device->init_nbor(nbor,nlocal,host_nlocal,nall,maxspecial,_gpu_host,
                  max_nbors,cell_size,false,_threads_per_atom);

  if (success!=0)
    return success;

  ucl_device=device->gpu;
  atom=&device->atom;

+6 −0
Original line number Diff line number Diff line
@@ -84,6 +84,12 @@ int BaseThreeT::init_three(const int nlocal, const int nall,
  if (success!=0)
    return success;

  success = device->init_nbor(nbor,nlocal,host_nlocal,nall,maxspecial,_gpu_host,
                  max_nbors,cell_size,false,_threads_per_atom);

  if (success!=0)
    return success;

  ucl_device=device->gpu;
  atom=&device->atom;

Loading