def test_verbose_true(self): mkl.verbose(True)
import numpy as np import time as tp import os import mkl from MatVec import matvec, flops, load_store os.environ['MKL_NUM_THREADS'] = '1' print(f'Numero de threads {mkl.get_max_threads()}') print(mkl.verbose(False)) def make_matrix_vector(n): x = np.random.rand(n) a = np.random.rand(n, n) return a, x def main(): list_n = (900, 1300, 1700, 2100, 2500, 2900, 3300, 3700, 4100, 4500, 4900, 5300, 5700, 6100, 6500, 6900, 7300, 7700, 8100, 8500, 8900, 9300, 9700, 10100, 10500, 10900, 11300, 11700, 12100, 12500, 12900, 13300, 13700, 14100, 14500, 14900, 15300, 15700, 16100, 16500, 16900, 17300, 17700, 18100, 18300, 18500, 19300, 19700, 20500, 20900, 21300, 22100, 22500, 23000) # ...
def test_verbose_false(self): mkl.verbose(False)