intel-mkl

tensorflow build - CPU / MKL / Windows

纵然是瞬间 提交于 2019-12-04 17:10:11
Has anyone succeeded to build tensorflow python wheel with the following configuration: CPU (not GPU) OS: Windows 7 / server 2012 Using Intel MKL and/or mkl-dnn Python 3.6 I am struggling, for days now, trying to tweak bazel files and cmake files without success. Would like to know if someone succeeded and willing to share what he did . Thanks, Lior Solution: 1 Installing TensorFlow from Source on windows is not generally supported. But you can try building this using bazel or tensorflow cmake build. Refer: https://www.tensorflow.org/install/install_sources Solution: 2 Create Intel optimized

Link the R Package Depending on RcppEigen with MKL in Microsoft R Open

*爱你&永不变心* 提交于 2019-12-04 13:43:49
I have built a custom package with some functions written in RcppEigen. I also have Microsoft R open with Intel MKL enabled. How could I link the R package to the Intel MKL feature? Setup 1 : Below are procedures that I have tried to link the package with MKL in the normal R, but failed: The Eigen documents says I need: 1. #define EIGEN_USE_MKL_ALL 2. link your program to MKL libraries ( the MKL linking advisor ) Based on 2, in my file Makevars PKG_CXXFLAGS = -I/opt/intel/mkl/include PKG_LIBS = ${LAPACK_LIBS} ${BLAS_LIBS} ${FLIBS} -L/opt/intel/mkl/lib/intel64 -Wl,--no-as-needed -lmkl_intel

Make sure numpy is using MKL library on mac pro

有些话、适合烂在心里 提交于 2019-12-04 10:06:27
问题 I am using Enthought's Canopy/EPD version of python which ships with numpy linked against MKL. I am currently running a set of simulations in parallel (using PP) on both my work computer (Windows 7, Quad Core i5 @ 3.33 Ghz, 4 GB ram) and my home workstation (Mac Pro 3.1, Ubuntu 12.04, 2x Quad Core Xeon @ 2.8 Ghz, 6 GB ram). But when I benchmark my simulations, they run much quicker on the work computer (35 seconds per iteration vs. 60 on the mac pro). The problem is being perfectly balanced

Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so

妖精的绣舞 提交于 2019-12-04 07:33:39
问题 I am running a python script and I get this error: Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so. Both files are present in the anaconda2/lib directory. How can I fix this error? Thanks. 回答1: If you use conda, try with these two commands: conda install nomkl numpy scipy scikit-learn numexpr conda remove mkl mkl-service It should fix your problem. 回答2: I ran into this problem after installing anaconda3 (vesion 4.2.0). The fix for me was simple, and I was able to keep using

Threaded FFT in Enthought Python

余生长醉 提交于 2019-12-03 07:56:44
Fast Fourier Transforms (FFTs) in Numpy/SciPy are not threaded. Enthought Python is shipped with the Intel MKL numerical library, which is capable of threaded FFTs. How does one get access to these routines? The following code works for me with Enthought 7.3-1 (64-bit) on Windows 7 Ultimate 64-bit. I haven't benchmarked it but it certainly uses all cores at once rather than just one. from ctypes import * class Mkl_Fft: c_double_p = POINTER(c_double) def __init__(self,num_threads=8): self.dfti = cdll.LoadLibrary("mk2_rt.dll") self.dfti.MKL_Set_Num_Threads(num_threads) self.Create = self.dfti

Performance degradation of matrix multiplication of single vs double precision arrays on multi-core machine

 ̄綄美尐妖づ 提交于 2019-12-03 07:32:52
问题 UPDATE Unfortunately, due to my oversight, I had an older version of MKL (11.1) linked against numpy. Newer version of MKL (11.3.1) gives same performance in C and when called from python. What was obscuring things, was even if linking the compiled shared libraries explicitly with the newer MKL, and pointing through LD_* variables to them, and then in python doing import numpy, was somehow making python call old MKL libraries. Only by replacing in python lib folder all libmkl_*.so with newer

Make sure numpy is using MKL library on mac pro

大憨熊 提交于 2019-12-03 05:01:26
I am using Enthought's Canopy/EPD version of python which ships with numpy linked against MKL. I am currently running a set of simulations in parallel (using PP) on both my work computer (Windows 7, Quad Core i5 @ 3.33 Ghz, 4 GB ram) and my home workstation (Mac Pro 3.1, Ubuntu 12.04, 2x Quad Core Xeon @ 2.8 Ghz, 6 GB ram). But when I benchmark my simulations, they run much quicker on the work computer (35 seconds per iteration vs. 60 on the mac pro). The problem is being perfectly balanced between cores (embarrassingly parallel problem), so I suspect there is an issue with the MKL library on

Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so

那年仲夏 提交于 2019-12-02 14:27:54
I am running a python script and I get this error: Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so. Both files are present in the anaconda2/lib directory. How can I fix this error? Thanks. Zaikun Xu If you use conda, try with these two commands: conda install nomkl numpy scipy scikit-learn numexpr conda remove mkl mkl-service It should fix your problem. I ran into this problem after installing anaconda3 (vesion 4.2.0). The fix for me was simple, and I was able to keep using mkl. Just update to the latest numpy version. conda update numpy Just wanted to note that Anaconda 4.0

Receive AssertionError while optimizing convolution in theano

不打扰是莪最后的温柔 提交于 2019-12-02 10:22:19
问题 I am trying to run this code: x_set = np.random.rand(100,100,100) x = T.dtensor3('x') inp = x.reshape((100, 1, 100, 100)) W_stdDev = np.sqrt(2. / (3 * 3 * 2)) W = theano.shared( np.asarray( np.random.normal(loc=.0, scale=W_stdDev, size=(3,1,3,3)), dtype=theano.config.floatX ), borrow=True ) conv_out = conv2d( input=inp, filters=W, filter_shape=(3,1,3,3), ) train_model = theano.function( inputs=[x], outputs=conv_out, ) print(train_model(x_set)) but receive the error: AssertionError:

Anaconda: cannot find packages when calling Python interpreter from outside the shell

你离开我真会死。 提交于 2019-12-02 08:59:49
问题 I have two Anaconda environments: The base environment An R environment (containing R only) The base environment is the default environment and does not appear in the Anaconda subdirectory envs . Base is activated by default and in particular while the commands below are executed. When I run python from within the Anaconda prompt (or another prompt that I have configured for Anaconda), importing numpy works without problems. However, when I run my scrips from my IDE (exctuing C:\my\path\to