The Elk Code
 
Loading...
Searching...
No Matches
mkl_init.f90
Go to the documentation of this file.
1
2! Copyright (C) 2018 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3! This file is distributed under the terms of the GNU General Public License.
4! See the file COPYING for license details.
5
6subroutine mkl_init
7use modomp
8implicit none
9! set the initial global number of MKL threads equal to one
10call mkl_set_num_threads(1)
11! set the maximum number of threads available to MKL
12select case(maxthdmkl)
13case(:-1)
15 maxthdmkl=max(maxthdmkl,1)
16case(0)
18case default
20end select
21! enable dynamic thread allocation
22call mkl_set_dynamic(.true.)
23end subroutine
24
subroutine mkl_init
Definition mkl_init.f90:7
integer maxthdmkl
Definition modomp.f90:15
integer maxthd
Definition modomp.f90:11