Python Forum
Why does a Numpy with Intel MKL have the same performance as a normal one?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why does a Numpy with Intel MKL have the same performance as a normal one?
#1
Intel i5-4690, Kubuntu 20.10

I installed the Numpy in the usual way:
pip3 install numpy
, and in Eclipse IDE ran the matrix multiplication test:
import numpy as np
from time import time

data1 = np.random.rand(24000, 4000)
data2 = np.random.rand(4000, 16000)
t_start = time()
data3 = np.matmul(data1, data2)
t_end = time()
print('Time elapsed: ' + str(t_end-t_start))
Then I ran the same test in the Spyder IDE, that was installed with Anaconda. As you know, packets collected in Anaconda automatic use Intel MKL.

The speed of matrix multiplication is the same! Why?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 562 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,610 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  How to graph a normal distribution? royer14 0 2,009 Apr-22-2019, 09:16 PM
Last Post: royer14
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 2,983 Apr-09-2019, 04:54 PM
Last Post: PhysChem

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020