SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数
Parallel类 参考

详细描述

Class Parallel provides helper functions for multithreading.

For example it can be used to determine the number of CPU cores in your computer and is the place where you define the number of CPUs that shall be used in computations.

在文件 Parallel.h27 行定义.

Public 成员函数

 Parallel ()
 
 Parallel (const Parallel &orig)
 
virtual ~Parallel ()
 
int32_t get_num_cpus () const
 
void set_num_threads (int32_t n)
 
int32_t get_num_threads () const
 
int32_t ref ()
 
int32_t ref_count () const
 
int32_t unref ()
 

构造及析构函数说明

Parallel ( )

constructor

在文件 Parallel.cpp26 行定义.

Parallel ( const Parallel orig)

copy constructor

在文件 Parallel.cpp32 行定义.

~Parallel ( )
virtual

destructor

在文件 Parallel.cpp38 行定义.

成员函数说明

int32_t get_num_cpus ( ) const

get num of cpus

返回
number of CPUs

在文件 Parallel.cpp43 行定义.

int32_t get_num_threads ( ) const

get number of threads

返回
number of threads

在文件 Parallel.cpp64 行定义.

int32_t ref ( )

ref

返回
current ref counter

在文件 Parallel.cpp69 行定义.

int32_t ref_count ( ) const

get ref count

返回
current ref counter

在文件 Parallel.cpp74 行定义.

void set_num_threads ( int32_t  n)

set number of threads

参数
nnumber of threads

在文件 Parallel.cpp56 行定义.

int32_t unref ( )

unref

返回
current ref counter

在文件 Parallel.cpp79 行定义.


该类的文档由以下文件生成:

SHOGUN 机器学习工具包 - 项目文档