MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::interface::detail::nested_blas_cap Class Reference

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...

#include <vendor_threads.hpp>

Public Member Functions

 nested_blas_cap () noexcept
 nested_blas_cap (const nested_blas_cap &)=delete
nested_blas_cap & operator= (const nested_blas_cap &)=delete

Detailed Description

Before a vendor call: inside an MTL5 region, the vendor runs on this thread only; outside one, nothing happens beyond a thread-local read.

The vendor is set once per region, not once per call (with BLIS a set costs more than a small ddot). On the region's calling thread the previous setting is restored when the thread leaves the region. On a pool worker, which only ever runs region tids, it stays at one.

Constructor & Destructor Documentation

◆ nested_blas_cap() [1/2]

mtl::interface::detail::nested_blas_cap::nested_blas_cap ( )
inlinenoexcept

◆ nested_blas_cap() [2/2]

mtl::interface::detail::nested_blas_cap::nested_blas_cap ( const nested_blas_cap & )
delete

Member Function Documentation

◆ operator=()

nested_blas_cap & mtl::interface::detail::nested_blas_cap::operator= ( const nested_blas_cap & )
delete

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