Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Enumerations | Functions

Runtime helpers for integrating OpenBLAS extensions with Uni20 BLAS abstractions. More...

Collaboration diagram for OpenBLAS backend:

Enumerations

enum class  uni20::blas::openblas::ParallelMode : int { uni20::blas::openblas::ParallelMode::sequential = 0 , uni20::blas::openblas::ParallelMode::thread = 1 , uni20::blas::openblas::ParallelMode::openmp = 2 }
 OpenBLAS parallel runtime mode. More...
 

Functions

std::string uni20::blas::openblas::config ()
 Return the OpenBLAS build configuration string.
 
std::string uni20::blas::openblas::core_name ()
 Return the OpenBLAS CPU core name selected by the library.
 
int uni20::blas::openblas::num_procs ()
 Return the processor count reported by OpenBLAS.
 
int uni20::blas::openblas::num_threads ()
 Return the current number of OpenBLAS worker threads.
 
ParallelMode uni20::blas::openblas::parallel_mode ()
 Return the OpenBLAS parallel runtime mode.
 
void uni20::blas::openblas::set_num_threads (int threads)
 Set the number of OpenBLAS worker threads.
 

Detailed Description

Runtime helpers for integrating OpenBLAS extensions with Uni20 BLAS abstractions.

Enumeration Type Documentation

◆ ParallelMode

enum class uni20::blas::openblas::ParallelMode : int
strong

OpenBLAS parallel runtime mode.

Enumerator
sequential 
thread 
openmp 

Function Documentation

◆ config()

std::string uni20::blas::openblas::config ( )
inline

Return the OpenBLAS build configuration string.

Returns
OpenBLAS-owned configuration text copied into std::string.

◆ core_name()

std::string uni20::blas::openblas::core_name ( )
inline

Return the OpenBLAS CPU core name selected by the library.

Returns
OpenBLAS-owned core-name text copied into std::string.

◆ num_procs()

int uni20::blas::openblas::num_procs ( )
inline

Return the processor count reported by OpenBLAS.

Returns
OpenBLAS processor count.

◆ num_threads()

int uni20::blas::openblas::num_threads ( )
inline

Return the current number of OpenBLAS worker threads.

Returns
Current OpenBLAS thread count.

◆ parallel_mode()

ParallelMode uni20::blas::openblas::parallel_mode ( )
inline

Return the OpenBLAS parallel runtime mode.

Returns
Runtime mode reported by openblas_get_parallel.

◆ set_num_threads()

void uni20::blas::openblas::set_num_threads ( int  threads)
inline

Set the number of OpenBLAS worker threads.

Parameters
threadsRequested thread count.