|
LBANN
0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
|
Functions | |
| template<typename... PathNameType> | |
| std::string | join_path (PathNameType &&... paths) |
| Concatenate all paths, injecting path separators between each argument. More... | |
| std::string | extract_parent_directory (const std::string &path) |
Wrapper around dirname. More... | |
| std::string | extract_base_name (const std::string &path) |
Wrapper around basename. More... | |
| bool | file_exists (const std::string &path) |
| Check if file exists. More... | |
| bool | directory_exists (const std::string &path) |
| Check if directory exists. More... | |
| void | make_directory (const std::string &path) |
| Create directory if needed. More... | |
| void | remove_multiple_slashes (std::string &str) |
| void | trainer_master_make_directory (const std::string &path, lbann_comm *comm) |
| Trainer master creates directory if needed. More... | |
| bool lbann::file::directory_exists | ( | const std::string & | path | ) |
Check if directory exists.
| std::string lbann::file::extract_base_name | ( | const std::string & | path | ) |
Wrapper around basename.
Deletes any prefix up to the last '/' (ignoring trailing slashes).
| std::string lbann::file::extract_parent_directory | ( | const std::string & | path | ) |
Wrapper around dirname.
Deletes any suffix beginning with the last '/' (ignoring trailing slashes).
| bool lbann::file::file_exists | ( | const std::string & | path | ) |
Check if file exists.
| std::string lbann::file::join_path | ( | PathNameType &&... | paths | ) |
Concatenate all paths, injecting path separators between each argument.
Definition at line 147 of file file_utils.hpp.
| void lbann::file::make_directory | ( | const std::string & | path | ) |
Create directory if needed.
Does nothing if directory already exists. Parent directories are created recursively if needed. This is thread-safe (provided mkdir is thread-safe).
| void lbann::file::remove_multiple_slashes | ( | std::string & | str | ) |
| void lbann::file::trainer_master_make_directory | ( | const std::string & | path, |
| lbann_comm * | comm | ||
| ) |
Trainer master creates directory if needed.
Coordinate efforts to allow the trainer master to make a directory if needed and synchronizes all other trainer ranks to ensure they see a consistent state of the file system.