setMKLthreads            package:Revobase            R Documentation

_S_e_t _t_h_e _N_u_m_b_e_r _o_f _T_h_r_e_a_d_s _f_o_r _M_a_t_h _K_e_r_n_e_l _L_i_b_r_a_r_y

_D_e_s_c_r_i_p_t_i_o_n:

     Set (or get) the maximum number of threads that can be started by
     the Math Kernel Library BLAS. This should be less than or equal to
     the number of  processing cores on your computer.

_U_s_a_g_e:

     setMKLthreads(n)
     getMKLthreads()

_A_r_g_u_m_e_n_t_s:

       n: an integer specifying the maximum number of threads. If
          missing, all available processors will be used.

_E_x_a_m_p_l_e_s:

     # by default using all cores available
     getMKLthreads() 
     setMKLthreads(1)
     getMKLthreads()
     setMKLthreads()
     getMKLthreads()
     setMKLthreads(1)
     try (setMKLthreads(1000), silent=TRUE)
     getMKLthreads()

