Questions tagged [blas]

The Basic Linear Algebra Subprograms are a standard set of interfaces for low-level vector and matrix operations commonly used in scientific computing.

A reference implementation is available at NetLib; optimized implementations are also available for all high-performance computing architectures, for example:

The BLAS routines are divided into three levels:

  • Level 1: vector operations e.g. vector addition, dot product
  • Level 2: matrix-vector operations e.g. matrix-vector multiplication
  • Level 3: matrix-matrix operations e.g. matrix multiplication
906 questions
12
votes
5 answers

libgfortran: version `GFORTRAN_1.4' not found

I am getting the following error when I trying to a run mex file in MATLAB: ??? Invalid MEX-file 'findimps3.mexa64': /MATLAB/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by…
Mohammad Moghimi
  • 4,636
  • 14
  • 50
  • 76
12
votes
1 answer

Floating point math in python / numpy not reproducible across machines

Comparing the results of a floating point computation across a couple of different machines, they are consistently producing different results. Here is a stripped down example that reproduces the behavior: import numpy as np from numpy.random import…
Urs
  • 705
  • 5
  • 10
12
votes
3 answers

How can I determine which matrix libraries my R install is using?

I am having a matrix error when using the computer cluster at my university that I cannot reproduce on my local machine. I think it might be due to a difference of matrix libraries (BLAS, LAPACK, ATLAS, etc.). I don't know much about these…
rcorty
  • 1,140
  • 1
  • 10
  • 28
12
votes
1 answer

performance of NumPy with different BLAS implementations

I'm running an algorithm that is implemented in Python and uses NumPy. The most computationally expensive part of the algorithm involves solving a set of linear systems (i.e. a call to numpy.linalg.solve(). I came up with this small…
lum
  • 1,503
  • 12
  • 17
11
votes
0 answers

How can I use BLAS on Windows with the GNU toolchain?

I have this dependency: blas = "0.18.1" During building this simple program (no types used de facto in the program): extern crate blas; use blas::c::*; I get these errors: error: linking with `gcc` failed: exit code: 1 | = note: "gcc"…
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
11
votes
5 answers

Trouble installing scipy via pyCharm windows 8 - no lapack / blas resources found

I'm currently having trouble installing scipy via PyCharm's package manager. I have installed numpy successfully and do have the Microsoft Visual Studio C/C++ compiler in the System Variables. However, when it's time to install scipy in PyCharm, the…
MCKong
  • 113
  • 1
  • 1
  • 4
11
votes
1 answer

numpy OpenBLAS set maximum number of threads

I am using numpy and my model involves intensive matrix-matrix multiplication. To speed up, I use OpenBLAS multi-threaded library to parallelize the numpy.dot function. My setting is as follows, OS : CentOS 6.2 server #CPUs = 12, #MEM = 96GB python…
Jing
  • 895
  • 6
  • 14
  • 38
10
votes
1 answer

How to transpose a matrix in an optimal way using blas?

I'm doing some calculations, and doing some analysis on the forces and weakness of different BLAS implementations. however I have come across a problem. I'm testing cuBlas, doing linAlg on the GPU would seem like a good idea, but there is one…
Martin Kristiansen
  • 9,875
  • 10
  • 51
  • 83
10
votes
4 answers

Basic operations in R giving different results on Windows and Linux

I have been running some code in R and while testing realized the results were different on Windows and Linux. I have tried to understand why this happens, but couldn't find an answer. Let's illustrate it with an example: These are some hard-coded…
Rai
  • 113
  • 12
10
votes
2 answers

"Attempting to perform BLAS operation using StreamExecutor without BLAS support" error occurs

my computer has only 1 GPU. Below is what I get the result by entering someone's code [name: "/device:CPU:0" device_type: "CPU" memory_limit: 268435456 locality {} incarnation: 16894043898758027805, name: "/device:GPU:0" device_type: "GPU"…
MCPMH
  • 175
  • 1
  • 1
  • 11
10
votes
1 answer

Pre-compiled Windows OMF BLAS/LAPACK?

Is there anywhere I can get pre-compiled BLAS and LAPACK binaries for Windows in OMF object format? I want to link some D language code to these. I'm aware of where I can get the relevant libs in COFF format. I'm also aware of the objconv tool,…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
10
votes
2 answers

Word2vec training using gensim starts swapping after 100K sentences

I'm trying to train a word2vec model using a file with about 170K lines, with one sentence per line. I think I may represent a special use case because the "sentences" have arbitrary strings rather than dictionary words. Each sentence (line) has…
Felipe
  • 11,557
  • 7
  • 56
  • 103
10
votes
3 answers

Matrix/Tensor Triple Product?

An algorithm I'm working on requires computing, in a couple places, a type of matrix triple product. The operation takes three square matrices with identical dimensions, and produces a 3-index tensor. Labeling the operands A, B and C, the …
Robert T. McGibbon
  • 5,075
  • 3
  • 37
  • 45
10
votes
2 answers

Unable to import numpy: Error: /usr/lib/liblapack.so.3: undefined symbol: gotoblas

When I try to import numpy, I get the following error: /usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py in () 49 from .info import __doc__ 50 ---> 51 from .linalg import * 52 53 from numpy.testing import…
vkmv
  • 1,345
  • 1
  • 14
  • 24
10
votes
3 answers

Linear Algebra Library for Sparse Matrices

I am interested in porting my Matlab implementation to C++ for speed improvement. I tried armadillo. It is perfect for porting code from Matlab because Armadillo's library functions names/syntax is very close to that of Matlab programming. However I…
Haider
  • 938
  • 2
  • 11
  • 25