3#include <uni20/config.hpp>
15#error "backend_mkl.hpp requires UNI20_BACKEND_MKL"
37 blas = MKL_DOMAIN_BLAS,
50 MKL_Get_Version_String(buffer,
static_cast<int>(
sizeof(buffer)));
51 return std::string(buffer);
71 return MKL_Domain_Set_Num_Threads(threads,
static_cast<int>(domain));
78inline int max_threads(
Domain domain) {
return MKL_Domain_Get_Max_Threads(
static_cast<int>(domain)); }
Domain
MKL computation domains accepted by domain-specific thread controls.
Definition backend_mkl.hpp:35
constexpr bool threaded_backend()
Return whether this build links the threaded MKL backend.
Definition backend_mkl.hpp:30
int max_threads()
Return the current global maximum number of oneMKL threads.
Definition backend_mkl.hpp:62
constexpr bool sequential_backend()
Return whether this build links the sequential MKL backend.
Definition backend_mkl.hpp:25
std::string version_string()
Return the oneMKL version string.
Definition backend_mkl.hpp:47
void set_num_threads(int threads)
Set the global maximum number of oneMKL threads.
Definition backend_mkl.hpp:57
Definition async/async.hpp:26