MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
vendor_threads.hpp File Reference
#include <mtl/parallel/thread_pool.hpp>
#include <cstdint>

Classes

class  mtl::interface::detail::nested_blas_cap
 Before a vendor call: inside an MTL5 region, the vendor runs on this thread only; outside one, nothing happens beyond a thread-local read. More...
class  mtl::interface::detail::nested_suitesparse_cap< Common >
 The same for a CHOLMOD/SPQR call: caps CHOLMOD's own OpenMP team through cholmod_common::nthreads_max, SPQR's TBB team (in SPQR builds with TBB) through SPQR_nthreads, and the BLAS they call, inside a region. More...

Namespaces

namespace  mtl
namespace  mtl::interface
namespace  mtl::interface::detail

Functions

constexpr const char * mtl::interface::blas_vendor () noexcept
 The BLAS/LAPACK vendor CMake detected: "mkl", "blis", "openblas" or "".
constexpr bool mtl::interface::blas_capped_in_region () noexcept
 Whether a vendor call made inside an MTL5 region runs on one thread.
int mtl::interface::blas_vendor_threads () noexcept
 The number of threads the detected vendor would use for a call made on this thread now; 0 when no vendor was detected.