Runtime helpers for integrating OpenBLAS extensions with Uni20 BLAS abstractions.
More...
Runtime helpers for integrating OpenBLAS extensions with Uni20 BLAS abstractions.
◆ ParallelMode
OpenBLAS parallel runtime mode.
| Enumerator |
|---|
| sequential | |
| thread | |
| openmp | |
◆ 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()
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
-
| threads | Requested thread count. |