Questions tagged [openblas]

Questions regarding OpenBLAS, an open source library that implements BLAS API and has hand-crafted optimizations for specific processor types.

OpenBLAS is an open source implementation of BLAS, the Basic Linear Algebra Subprograms library, optimized for high performance on multi-core x86-64 processors. It was forked from the GotoBLAS2-1.13 BSD version and was tuned to have performance similar to Intel MKL.

277 questions
5
votes
1 answer

Floating-point number vs fixed-point number: speed on Intel I5 CPU

I have a C/C++ program which involves intensive 32-bit floating-point matrix math computations such as addition, subtraction, multiplication, division, etc. Can I speed up my program by converting 32-bit floating-point numbers into 16-bit…
Shawn
  • 619
  • 1
  • 5
  • 12
5
votes
0 answers

Attempting to run R with Atlas/OpenBLAS on redhat

For two days I've been trying to install Openblas/atlas with Lapack and use it in R. it's driving me crazy. I'm at a point where I can't even think anymore. My server uses: Red Hat Enterprise Linux Server release 6.6 (Santiago) Here is what I've…
Bas
  • 1,066
  • 1
  • 10
  • 28
5
votes
1 answer

Why does numpy.float16 break the OpenBlas/Atlas functionalities?

Ok, I know float16 is not a real primitive type, but it's simulated by Python/numpy. However, the question is: if that exists and Python allows to use it in arrays multiplication using the numpy.dot() function, why doesn't OpenBlas (or ATLAS)…
redcrow
  • 1,743
  • 3
  • 25
  • 45
4
votes
1 answer

Build R with OpenBLAS

I'm trying to build R-devel / R-patched. I've read some links, connected with steps for doing this. 1) https://www.r-bloggers.com/2022/01/building-r-4-2-for-windows-with-openblas/ 2)…
Dmitriy
  • 847
  • 17
  • 39
4
votes
1 answer

Error when trying to add OpenBLAS dependency twice: via add_subdirectory and find_package at the same time

I am making use of OpenBLAS for both my BLAS and LAPACK routine calls. I do not want the user base of my C++ library to have to install the dependency on their machine. So I want to supply the OpenBLAS library in my third_party and have CMake link…
GeneralCode
  • 794
  • 1
  • 11
  • 26
4
votes
1 answer

Cloud Run - OpenBLAS Warnings and application restarts (Not a cold start issue)

Problem I have an application running on a Cloud Run instance for a 5 months now. The application has a startup time of about 3 minutes and when the startup is over it does not need much RAM. Here are two snapshots of docker stats when I run the app…
4
votes
1 answer

Problem calling BLAS from julia directly (could not find function :zgemm_64_ in library libopenblas64_)

I'm trying to call BLAS in Julia using ccall like this ccall((BLAS.@blasfunc(:zgemm_), BLAS.libblas),...other arguments) For as far as I can tell, this is the same way the LinearAlgebra package calls BLAS (link to source) I get the following error…
Thijs Steel
  • 1,190
  • 7
  • 16
4
votes
0 answers

How can I make numpy use SSE4_2 instead of AVX?

I am struggling with a python reproducibility problem across different machines. I have two machines: an older server with SSE4_2 and a newer desktop with AVX. Running the same python script on both machines results in different outputs (I made sure…
ej_01
  • 51
  • 4
4
votes
1 answer

BLAS function returns zero in Fortran90

I am learning to use BLAS in Fortran90, and wrote a simple program using the subroutine SAXPY and the function SNRM2. The program computes the distance between two points by subtracting one vector from the other, then taking the euclidean norm of…
xxyxxyxyx1
  • 79
  • 7
4
votes
1 answer

static linking to libopenblas

I am compiling a C++ program with -static so that I can take my program to a server and run it. The server has not all libraries installed I am linking with and when trying to run the program I get the error that libopenblas.so.0 can not be found as…
Stefan
  • 45
  • 1
  • 6
4
votes
1 answer

"Too many memory regions" error with Dask

When using Dask with Dask array I suddenly get the following error and my kernel that dies / restarts. The console says: BLAS : Program is Terminated. Because you tried to allocate too many memory regions I'm using Anaconda on mac with OpenBLAS.…
MRocklin
  • 55,641
  • 23
  • 163
  • 235
4
votes
1 answer

lapack/blas/openblas proper installation from source - replace system libraries with new ones

I wanted to install BLAS, CBLAS, LAPACK and OpenBLAS libraries from source using available packages you can download here openblas and lapack, blas/cblas. Firstly I removed my system blas/cblas and lapack libraries, but unfortunately atlas library…
Bociek
  • 1,195
  • 2
  • 13
  • 28
4
votes
1 answer

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

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…
elelias
  • 4,552
  • 5
  • 30
  • 45
4
votes
1 answer

Link against openblas; do I need still Lapack?

I do compile Ipopt with openblas using the linkage: ./configure --with-blas-incdir="-L/home/moritz/build/CoinIpopt_test/ThirdParty/openblas/include/" --with-blas-lib="-L/home/moritz/build/CoinIpopt_test/ThirdParty/openblas/lib/…
Moritz
  • 5,130
  • 10
  • 40
  • 81
4
votes
3 answers

How to use multi CPU cores to train NNs using caffe and OpenBLAS

I am learning deep learning recently and my friend recommended me caffe. After install it with OpenBLAS, I followed the tutorial, MNIST task in the doc. But later I found it was super slow and only one CPU core was working. The problem is that the…
1 2
3
18 19