intel-mkl

Confused with pdpotrf arguments

给你一囗甜甜゛ 提交于 2019-11-28 09:23:46
问题 I want to do a Cholesky factorization in a distributed environment. For that purpose, I use pdpotrf(). However, I am struggling understanding the parameters needed by the function and they provide no C example on how to use it (and an example would be really great to have). Assume I have a NxX matrix I want to factorize. Then, what values should the parameters have? uplo , a and info are well defined in my mind. How about the rest? n should be equal to N I would say. However, desca , ia and

Does installing BLAS/ATLAS/MKL/OPENBLAS will speed up R package that is written in C/C++?

跟風遠走 提交于 2019-11-28 01:51:08
问题 I found that using one of BLAS/ATLAS/MKL/OPENBLAS will give improvement on speed in R. However, will it still improve the R Package that is written in C or C++? for example, R package Glmnet is implemented in FORTRAN and R package rpart is implemented in C++. Will it just installing BLAS/...etc will improve the execution time? or do we have to rebuild (building new C code) the package based on BLAS/...etc? 回答1: It is frequently stated, including in a comment here, that "you have to recompile

Calling BLAS / LAPACK directly using the SciPy interface and Cython

无人久伴 提交于 2019-11-28 01:45:41
There was a post on this here: https://gist.github.com/JonathanRaiman/f2ce5331750da7b2d4e9 which shows a great speed improvement by just calling the Fortran libraries (BLAS / LAPACK / Intel MKL / OpenBLAS / whatever you installed with NumPy). After many hours of working on this (because of deprecated SciPy libraries) I finally got it to compile with no results. It was 2x faster than NumPy. Unfortunately as another user pointed out, the Fortran routine is always adding the output matrix to the new results calculated, so it only matches NumPy on the 1st run. I.e. A := alpha*x*y.T + A . So that

Supplying NumPy site.cfg arguments to pip

寵の児 提交于 2019-11-27 18:45:26
I'm using NumPy built against Intel's Math Kernel Library. I use virtualenv, and typically use pip to install packages. However, in order for NumPy to find the MKL libraries, it's necessary to create a site.cfg file in the NumPy source directory prior to compiling it, then manually build and install. I could script this whole process, but I was hoping for a simpler solution. I have a standard site.cfg file that can be used for this purpose under version control. Are there any pip command line options that will tell it to copy a particular file to the source directory before building a package?

Using mkl_set_num_threads with numpy

♀尐吖头ヾ 提交于 2019-11-27 17:40:09
问题 I'm trying to set the number of threads for numpy calculations with mkl_set_num_threads like this import numpy import ctypes mkl_rt = ctypes.CDLL('libmkl_rt.so') mkl_rt.mkl_set_num_threads(4) but I keep getting an segmentation fault: Program received signal SIGSEGV, Segmentation fault. 0x00002aaab34d7561 in mkl_set_num_threads__ () from /../libmkl_intel_lp64.so Getting the number of threads is no problem: print mkl_rt.mkl_get_max_threads() How can I get my code working? Or is there another

Directly use Intel mkl library on Scipy sparse matrix to calculate A dot A.T with less memory

徘徊边缘 提交于 2019-11-27 14:55:29
I want to call mkl.mkl_scsrmultcsr from python. The goal is to calculate a sparse matrix C in compressed sparse row format. Sparse matrix C is the matrix product between A and transpose of A, where A is also a sparse matrix in csr format. When calculating C = A dot (A.T) with scipy, scipy seems (?) to allocate new memory for holding transpose of A (A.T), and definitely allocates memory for a new C matrix (This means I can't use an existing C matrix). So, I want to try to use the mkl c function directly to decrease memory usage. Here is an answer that works for another mkl function. In that

Linking Intel's Math Kernel Library (MKL) to R on Windows

随声附和 提交于 2019-11-27 13:43:54
问题 Using an alternative BLAS for R has several advantages, see e.g. https://cran.r-project.org/web/packages/gcbd/vignettes/gcbd.pdf. Microsoft R Open https://mran.revolutionanalytics.com/documents/rro/installation/#sysreq is using Intel's MKL instead of the default Reference BLAS to speed up calculations. My question is: What would be the exact steps to link Intel's MKL library **manually to R**'s most recent version on Windows (https://cran.r-project.org/bin/windows/base/)? UPDATE 20-07-2016:

Pyinstaller numpy “Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll”

元气小坏坏 提交于 2019-11-27 12:43:02
问题 I'm new with python apps. I'm trying to build my python GUI app with pyinstaller. My app depends on the following packages: PyQt4, numpy, pyqtgraph, h5py. I'm working with WinPython-32bit-3.4.4.1. I build the app with this command: pyinstaller --hidden-import=h5py.defs --hidden-import=h5py.utils --hidden-import=h5py.h5ac --hidden-import=h5py._proxy VOGE.py I launch my app with the exe file in the dist directory created by pyinstaller and it seems work fine until the program call numpy and

Calling BLAS / LAPACK directly using the SciPy interface and Cython

感情迁移 提交于 2019-11-26 23:33:56
问题 There was a post on this here: https://gist.github.com/JonathanRaiman/f2ce5331750da7b2d4e9 which shows a great speed improvement by just calling the Fortran libraries (BLAS / LAPACK / Intel MKL / OpenBLAS / whatever you installed with NumPy). After many hours of working on this (because of deprecated SciPy libraries) I finally got it to compile with no results. It was 2x faster than NumPy. Unfortunately as another user pointed out, the Fortran routine is always adding the output matrix to the

Supplying NumPy site.cfg arguments to pip

∥☆過路亽.° 提交于 2019-11-26 19:35:27
问题 I'm using NumPy built against Intel's Math Kernel Library. I use virtualenv, and typically use pip to install packages. However, in order for NumPy to find the MKL libraries, it's necessary to create a site.cfg file in the NumPy source directory prior to compiling it, then manually build and install. I could script this whole process, but I was hoping for a simpler solution. I have a standard site.cfg file that can be used for this purpose under version control. Are there any pip command line