openblas

Openblas does not link to Scipy

蹲街弑〆低调 提交于 2019-12-08 01:39:39
问题 I am currently running scipy on Debian Jessie. I have installed scipy from apt-get. I have also installed blas and lapack from apt sudo apt-get install python-scipy libblas-dev libatlas-dev Then I have compile openblas on my machine and install it in the default path: /opt/OpenBLAS/ I have updated the alternatives, and everything seem to be fine: sudo update-alternatives --list libblas.so.3 /opt/OpenBLAS/lib/libopenblas.so sudo update-alternatives --config liblapack.so.3 Il existe 2 choix

What does the numerical literal 0.e0f mean?

白昼怎懂夜的黑 提交于 2019-12-07 23:17:32
问题 I am currently trying to debug an uninitialized memory error. I have now come across the numerical literal 0.e0f in the OpenBlas source code (which is what the debugger is currently at) what does that mean? The context is this: if ((alpha_r == 0.e0f) && (alpha_i == 0.e0f)) return; The 0.e0f evaluates to 0 apparently. 回答1: A floating-point literals have two syntaxes. The first one consists of the following parts: nonempty sequence of decimal digits containing a decimal point character (defines

base::chol() slows down when matrix contains many small entries

一个人想着一个人 提交于 2019-12-07 18:14:31
问题 I've noticed that base::chol() severely slows down when the matrix contains many small elements. Here is an example: ## disable openMP library(RhpcBLASctl); blas_set_num_threads(1); omp_set_num_threads(1) Baseline : create positive definite matrix and get timing for chol() . loc <- expand.grid(1:60, 1:50) covmat1 <- exp(-as.matrix(dist(loc))) mean(c(covmat1)) # [1] 0.002076862 system.time(chol1 <- chol(covmat1)) # user system elapsed # 0.313 0.024 0.337 Increase small values : create covmat2

How can I make NumPy use OpenBlas in Ubuntu?

a 夏天 提交于 2019-12-07 15:42:43
问题 I have both BLAS and OpenBLAS installed: $ dpkg -l \*blas\* | grep ^i ii libblas-dev 1.2.20110419-7 amd64 Basic Linear Algebra Subroutines 3, static library ii libblas3 1.2.20110419-7 amd64 Basic Linear Algebra Reference implementations, shared library ii libopenblas-base 0.2.8-6ubuntu1 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2 ii libopenblas-dev 0.2.8-6ubuntu1 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2 However, NumPy still says that OpenBLAS is

OpenBLAS error when importing numpy: `pthread_creat error in blas_thread_init function`

不羁岁月 提交于 2019-12-07 15:32:41
问题 All of a sudden, I cannot import numpy: import numpy as np OpenBLAS: pthread_creat error in blas_thread_init function. Error code:1 I'm running numpy from Anaconda 1.10.1-py27_0 but I had the same issue on 1.9.3-py27_0 Any clues? Edit:Trying to find out what the version used is I did: >ldd multiarray.so linux-vdso.so.1 => (0x00007fff53fd4000) libopenblas.so.0 => not found libm.so.6 => /lib64/libm.so.6 (0x00007faa1ec14000) libpython2.7.so.1.0 => not found libpthread.so.0 => /lib64/libpthread

Why is matrix product slower when matrix has very small values?

丶灬走出姿态 提交于 2019-12-07 00:02:23
问题 I create two matrices A and B of the same dimension. A contains larger values than B . The matrix multiplication A %*% A is about 10 times faster than B %*% B . Why is this? ## disable openMP library(RhpcBLASctl); blas_set_num_threads(1); omp_set_num_threads(1) A <- exp(-as.matrix(dist(expand.grid(1:60, 1:60)))) summary(c(A)) # Min. 1st Qu. Median Mean 3rd Qu. Max. # 0.000000 0.000000 0.000000 0.001738 0.000000 1.000000 B <- exp(-as.matrix(dist(expand.grid(1:60, 1:60)))*10) summary(c(B)) #

What does the numerical literal 0.e0f mean?

﹥>﹥吖頭↗ 提交于 2019-12-06 07:54:01
I am currently trying to debug an uninitialized memory error. I have now come across the numerical literal 0.e0f in the OpenBlas source code (which is what the debugger is currently at) what does that mean? The context is this: if ((alpha_r == 0.e0f) && (alpha_i == 0.e0f)) return; The 0.e0f evaluates to 0 apparently. A floating-point literals have two syntaxes. The first one consists of the following parts: nonempty sequence of decimal digits containing a decimal point character (defines significand) (optional) e or E followed with optional minus or plus sign and nonempty sequence of decimal

No _dotblas.so after installing OpenBLAS and Numpy

时光毁灭记忆、已成空白 提交于 2019-12-06 07:22:05
I'm trying to speed up matrix operations using NumPy in Ubuntu 14.04 LTS (64-bit). Instead of using ATLAS (actually when I use ATLAS, there is only 1 thread which is fully running, with 7 other opened threads doing nothing, even if I specify OMP_NUM_THREADS=8 for instance. Don't know why.), I decided to give OpenBLAS a try. I've spent hours by following several tutorials to build the source code of OpenBLAS and NumPy , e.g. [1] , [2] , [3] , [4] , and [5] . However, none of them can generate _dotblas.so after compiling NumPy, which is a critical file to speed up dot operation between matrices.

OpenBLAS error when importing numpy: `pthread_creat error in blas_thread_init function`

强颜欢笑 提交于 2019-12-06 03:25:35
All of a sudden, I cannot import numpy: import numpy as np OpenBLAS: pthread_creat error in blas_thread_init function. Error code:1 I'm running numpy from Anaconda 1.10.1-py27_0 but I had the same issue on 1.9.3-py27_0 Any clues? Edit:Trying to find out what the version used is I did: >ldd multiarray.so linux-vdso.so.1 => (0x00007fff53fd4000) libopenblas.so.0 => not found libm.so.6 => /lib64/libm.so.6 (0x00007faa1ec14000) libpython2.7.so.1.0 => not found libpthread.so.0 => /lib64/libpthread.so.0 (0x00007faa1e9f7000) libc.so.6 => /lib64/libc.so.6 (0x00007faa1e663000) /lib64/ld-linux-x86-64.so.2

How to check which BLAS is in my Ubuntu system?

萝らか妹 提交于 2019-12-06 00:38:13
问题 In particular, I would like to know if xianyi's OpenBLAS has been installed. I work on several PCs and had it installed in several PCs over the past couple of years, but I lost track which were not installed with it. I need to know which PC has it and which doesn't This is how I installed it: git clone git://github.com/xianyi/OpenBLAS cd OpenBLAS make FC=gfortran sudo make PREFIX=/usr/local/ install Note: I may have deleted the OpenBLAS directory, so it's not a reliable indicator. And I have