I'm a bit confused about the method
mkl_get_max_threads()
According to the help documentation, it should return the number of physical cores (provided that dynamic adjustment is enabled).
However, when I run the code below on my 4-core machine, I get back "1" for "nT". How so?
if ( 1 == mkl_get_dynamic( ) )
{
long nT = mkl_get_max_threads();
mkl_set_num_threads( nT );
}
Zone:
Thread Topic:
Question