|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Functions | |
| int | get_node_rank_with_mpi_shared (const MPI_Comm mpi_comm=MPI_COMM_WORLD) |
| Get the local rank within the node using MPI_COMM_TYPE_SHARED. | |
| bool | probe_gpu_availability () |
| Safely probes for GPU availability without exiting on error. | |
| std::string | get_device_flag (const std::string &device, const std::string &basis_type) |
| Get the device flag object for source_io PARAM.inp.device. | |
| std::string | get_device_name (std::string device_flag) |
| Get the device name for source_esolver. | |
| int | get_device_num (std::string device_flag) |
| Get the device number for source_esolver. | |
| void | output_device_info (std::ostream &output, const std::string &device) |
| Output the device information for source_esolver. | |
| template<typename Device > | |
| void | print_device_info (const Device *dev, std::ofstream &ofs_device) |
| template<typename Device > | |
| void | record_device_memory (const Device *dev, std::ofstream &ofs_device, std::string str, size_t size) |
| std::string base_device::information::get_device_flag | ( | const std::string & | device, |
| const std::string & | basis_type | ||
| ) |
Get the device flag object for source_io PARAM.inp.device.
| std::string base_device::information::get_device_name | ( | std::string | device_flag | ) |
Get the device name for source_esolver.
| int base_device::information::get_device_num | ( | std::string | device_flag | ) |
Get the device number for source_esolver.
| int base_device::information::get_node_rank_with_mpi_shared | ( | const MPI_Comm | mpi_comm = MPI_COMM_WORLD | ) |
Get the local rank within the node using MPI_COMM_TYPE_SHARED.
| mpi_comm | MPI communicator (default: MPI_COMM_WORLD) |
| void base_device::information::output_device_info | ( | std::ostream & | output, |
| const std::string & | device | ||
| ) |
Output the device information for source_esolver.
| output | output stream. |
| device | device flag, "cpu" / "gpu" / "dsp". |
| void base_device::information::print_device_info | ( | const Device * | dev, |
| std::ofstream & | ofs_device | ||
| ) |
| bool base_device::information::probe_gpu_availability | ( | ) |
Safely probes for GPU availability without exiting on error.
| void base_device::information::record_device_memory | ( | const Device * | dev, |
| std::ofstream & | ofs_device, | ||
| std::string | str, | ||
| size_t | size | ||
| ) |