FlashGraph-ng
A new frontier in large-scale graph analysis and data mining
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
fm::matrix_config Class Reference

#include <matrix_config.h>

Public Member Functions

 matrix_config ()
 The default constructor that set all configurations to their default values.
 
void print_help ()
 Print the explanations of all configurations.
 
void print ()
 Print the current values of all configurations.
 
void init (config_map::ptr map)
 Set the configurations to the user-defined values.
 
const std::string & get_prof_file () const
 Get the output file containing CPU profiling. More...
 
int get_num_SpM_threads () const
 Get the number of worker threads for sparse matrix. More...
 
int get_num_DM_threads () const
 Get the number of worker threads for dense matrix. More...
 
bool use_in_mem_matrix () const
 Determine whether to use in-mem matrix data. More...
 
int get_row_block_size () const
 The size of a row block (the number of rows).
 
int get_rb_io_size () const
 The size of a matrix I/O in 1D partitioning (the number of row blocks).
 
int get_rb_steal_io_size () const
 The size of a matrix I/O stolen from another thread (the number of row blocks).
 

Detailed Description

The data structure contains the configurations for matrix operations.

Member Function Documentation

int fm::matrix_config::get_num_DM_threads ( ) const
inline

Get the number of worker threads for dense matrix.

Returns
The number of worker threads for dense matrix.
int fm::matrix_config::get_num_SpM_threads ( ) const
inline

Get the number of worker threads for sparse matrix.

Returns
The number of worker threads for sparse matrix.
const std::string& fm::matrix_config::get_prof_file ( ) const
inline

Get the output file containing CPU profiling.

Returns
the file name.
bool fm::matrix_config::use_in_mem_matrix ( ) const
inline

Determine whether to use in-mem matrix data.

Returns
true if we loads the entire matrix data in memory in advance.

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