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

#include <gpu_neighbor_list.h>

Collaboration diagram for ModuleNeighList::GPU_NeighborList:

Public Member Functions

 GPU_NeighborList ()=default
 ~GPU_NeighborList ()
 GPU_NeighborList (const GPU_NeighborList &)=delete
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]

ModuleNeighList::GPU_NeighborList::GPU_NeighborList ( )
default
Here is the caller graph for this function:

◆ ~GPU_NeighborList()

ModuleNeighList::GPU_NeighborList::~GPU_NeighborList ( )
Here is the call graph for this function:

◆ GPU_NeighborList() [2/2]

ModuleNeighList::GPU_NeighborList::GPU_NeighborList ( const GPU_NeighborList & )
delete
Here is the call graph for this function:

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ build_device()

bool ModuleNeighList::GPU_NeighborList::build_device ( int nall,
double cutoff,
const std::vector< double > & position,
int & max_neighbors,
std::string & error )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ device_max_neighbors()

int ModuleNeighList::GPU_NeighborList::device_max_neighbors ( ) const
Here is the caller graph for this function:

◆ device_nall()

int ModuleNeighList::GPU_NeighborList::device_nall ( ) const
Here is the caller graph for this function:

◆ device_neighbor_count()

const void * ModuleNeighList::GPU_NeighborList::device_neighbor_count ( ) const
Here is the caller graph for this function:

◆ device_neighbor_indices()

const void * ModuleNeighList::GPU_NeighborList::device_neighbor_indices ( ) const
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

GPU_NeighborList & ModuleNeighList::GPU_NeighborList::operator= ( const GPU_NeighborList & )
delete
Here is the call graph for this function:

◆ 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 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ use_candidate_device()

void ModuleNeighList::GPU_NeighborList::use_candidate_device ( )
Here is the call graph for this function:

Member Data Documentation

◆ candidate_device_count_

void* ModuleNeighList::GPU_NeighborList::candidate_device_count_ = nullptr
private

◆ candidate_device_indices_

void* ModuleNeighList::GPU_NeighborList::candidate_device_indices_ = nullptr
private

◆ candidate_device_max_neighbors_

int ModuleNeighList::GPU_NeighborList::candidate_device_max_neighbors_ = 0
private

◆ candidate_device_nall_

int ModuleNeighList::GPU_NeighborList::candidate_device_nall_ = 0
private

◆ device_max_neighbors_

int ModuleNeighList::GPU_NeighborList::device_max_neighbors_ = 0
private

◆ device_nall_

int ModuleNeighList::GPU_NeighborList::device_nall_ = 0
private

◆ device_neighbor_count_

void* ModuleNeighList::GPU_NeighborList::device_neighbor_count_ = nullptr
private

◆ device_neighbor_indices_

void* ModuleNeighList::GPU_NeighborList::device_neighbor_indices_ = nullptr
private

◆ filtered_device_count_

void* ModuleNeighList::GPU_NeighborList::filtered_device_count_ = nullptr
private

◆ filtered_device_indices_

void* ModuleNeighList::GPU_NeighborList::filtered_device_indices_ = nullptr
private

◆ filtered_device_max_neighbors_

int ModuleNeighList::GPU_NeighborList::filtered_device_max_neighbors_ = 0
private

◆ filtered_device_nall_

int ModuleNeighList::GPU_NeighborList::filtered_device_nall_ = 0
private

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