ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
GPU_NeighborList Class Reference

#include <gpu_neighbor_list.h>

Collaboration diagram for GPU_NeighborList:

Public Member Functions

 GPU_NeighborList ()=default
 GPU_NeighborList (const GPU_NeighborList &)=delete
 ~GPU_NeighborList ()
GPU_NeighborList & operator= (const GPU_NeighborList &)=delete
bool build (int nall, double cutoff, const std::vector< double > &position, std::vector< int > &neighbor_count, std::vector< int > &neighbor_indices, int &max_neighbors, std::string &error) const
bool filter (int nall, double cutoff, const std::vector< double > &position, const std::vector< int > &candidate_count, const std::vector< int > &candidate_indices, int candidate_max_neighbors, std::vector< int > &neighbor_count, std::vector< int > &neighbor_indices, int &max_neighbors, std::string &error) const
bool build_device (int nall, double cutoff, const std::vector< double > &position, int &max_neighbors, std::string &error)
bool filter_device (int nall, double cutoff, const std::vector< double > &position, int candidate_max_neighbors, int &max_neighbors, std::string &error)
void use_candidate_device ()
bool upload (int nall, int max_neighbors, const std::vector< int > &neighbor_count, const std::vector< int > &neighbor_indices, std::string &error)
const void * device_neighbor_count () const
const void * device_neighbor_indices () const
int device_nall () const
int device_max_neighbors () const

Private Attributes

void * candidate_device_count_ = nullptr
void * candidate_device_indices_ = nullptr
int candidate_device_nall_ = 0
int candidate_device_max_neighbors_ = 0
void * filtered_device_count_ = nullptr
void * filtered_device_indices_ = nullptr
int filtered_device_nall_ = 0
int filtered_device_max_neighbors_ = 0
void * device_neighbor_count_ = nullptr
void * device_neighbor_indices_ = nullptr
int device_nall_ = 0
int device_max_neighbors_ = 0

Constructor & Destructor Documentation

◆ GPU_NeighborList() [1/2]

◆ GPU_NeighborList() [2/2]

◆ ~GPU_NeighborList()

Member Function Documentation

◆ build()

bool ModuleNeighList::GPU_NeighborList::build ( int nall,
double cutoff,
const std::vector< double > & position,
std::vector< int > & neighbor_count,
std::vector< int > & neighbor_indices,
int & max_neighbors,
std::string & error ) const

◆ build_device()

bool ModuleNeighList::GPU_NeighborList::build_device ( int nall,
double cutoff,
const std::vector< double > & position,
int & max_neighbors,
std::string & error )

◆ device_max_neighbors()

◆ device_nall()

◆ device_neighbor_count()

◆ device_neighbor_indices()

◆ filter()

bool ModuleNeighList::GPU_NeighborList::filter ( int nall,
double cutoff,
const std::vector< double > & position,
const std::vector< int > & candidate_count,
const std::vector< int > & candidate_indices,
int candidate_max_neighbors,
std::vector< int > & neighbor_count,
std::vector< int > & neighbor_indices,
int & max_neighbors,
std::string & error ) const

◆ filter_device()

bool ModuleNeighList::GPU_NeighborList::filter_device ( int nall,
double cutoff,
const std::vector< double > & position,
int candidate_max_neighbors,
int & max_neighbors,
std::string & error )

◆ operator=()

GPU_NeighborList & ModuleNeighList::GPU_NeighborList::operator= ( const GPU_NeighborList & )
delete

◆ upload()

bool ModuleNeighList::GPU_NeighborList::upload ( int nall,
int max_neighbors,
const std::vector< int > & neighbor_count,
const std::vector< int > & neighbor_indices,
std::string & error )

◆ use_candidate_device()

Member Data Documentation

◆ candidate_device_count_

◆ candidate_device_indices_

◆ candidate_device_max_neighbors_

◆ candidate_device_nall_

◆ device_max_neighbors_

◆ device_nall_

◆ device_neighbor_count_

◆ device_neighbor_indices_

◆ filtered_device_count_

◆ filtered_device_indices_

◆ filtered_device_max_neighbors_

◆ filtered_device_nall_


The documentation for this class was generated from the following files: