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
2
votes
0 answers

Python script through PHP wrapper OpenBLAS error

I'm trying to run a python script as a cronjob via a PHP wrapper. The webserver is a shared one. When I'm running ./script.py via PuTTY on the server everything runs fine. I now want to implement a cronjob to start the script everyday. I implemented…
Doxmare
  • 61
  • 1
  • 6
2
votes
1 answer

Error when using library "xtensor-blas" in C++

I have been trying to use the xtensor-blas library for a while, but with no luck. I'm using Windows, G++ 8.1.0 and MinGW-W64. Here is my attempt at a simple example: #include #include "xtensor/xarray.hpp" #include…
user3199900
  • 141
  • 2
  • 6
2
votes
0 answers

Has anyone tried to compile OpenBLAS to Webassembly using clang/emcc?

In the OpenBLAS root directory on a linux system, with emcc sdk already loaded by (in the emsdk directory, source ./emsdk_env.sh) I was trying to use emcc to compile OpenBLAS by make CC=emcc NOFORTRAN=1 HOSTCC=emcc BINARY=64 libs, but it complained…
Chen
  • 188
  • 2
  • 11
2
votes
0 answers

Anaconda NumPy (SciPy stack) performance on Ryzen 3000 and windows

I have a new Ryzen CPU and ran into this issue. Eg. default anaconda channel uses Intel MKL and this cripples performance on Ryzen systems. If a numpy version using openblas is used, then it's much faster. The above example is in ubuntu but I need…
beginner_
  • 7,230
  • 18
  • 70
  • 127
2
votes
1 answer

Link OpenBLAS to MinGW

I'm trying to link OpenBLAS library with MinGW w64 compiler on Windows. This is my code: #include #include #include int main(){ double m[10],n[10]; int i, result; for(i=0;i<10;i++) m[i] =…
Ashot Matevosyan
  • 2,349
  • 1
  • 9
  • 11
2
votes
0 answers

OpenBLAS preset in the DL4J library for Android

I am trying to run OpenBLAS preset in the DL4J library but i am having a problem in SetNumThreads.allocate() the library implementation in build.gradle: implementation group: 'org.bytedeco.javacpp-presets', name: 'openblas', version:…
Jay
  • 21
  • 3
2
votes
1 answer

How to fix 'undefined reference to _gfortran_concat_string and to _gfortran_etime when building MXNET?

I am trying to build MXNET from this repo https://github.com/mahyarnajibi/SNIPER/tree/cvpr3k. I have cuda, cudnn, and openblas installed. I build the code with the following command: make -j 8 USE_CUDA_PATH=/usr/local/cuda The error message is as…
2
votes
1 answer

OpenBLAS sgemm, special requirements? sometimes I get nan

I have this declaration in my header somewhere: typedef float real; typedef int integer; extern "C" { extern int sgemm_(char *transa, char *transb, integer *m, integer *n, integer *k, const real *alpha, const real *a, integer *lda, const…
Albert
  • 65,406
  • 61
  • 242
  • 386
2
votes
1 answer

numpy import SystemError and segfault only through LSF (OpenBLAS blas_thread_init: pthread_create: Resource temporarily unavailable)

When I import numpy with blas 1.1 in a script running through LSF, it gives a SystemError and segmentation fault after repeated instances of OpenBLAS blas_thread_init: pthread_create: Resource temporarily unavailable and OpenBLAS blas_thread_init:…
gerrit
  • 24,025
  • 17
  • 97
  • 170
2
votes
0 answers

Cython prange and BLAS slower than sklearn

I have an issue when trying to use Cython for accelerating distance (via dot product) calculations. I want compute the distance matrix between each pair of vectors of arrays a and b, where a and b have the same (large) number of dimensions, say 100,…
Sébastien Vincent
  • 1,611
  • 1
  • 10
  • 4
2
votes
2 answers

Is there a BLAS/LAPACK function for calculating Cholesky factor updates?

Let A be a positive definite matrix, and let A=L*L' be its cholesky factorization, where L is lower triangular. Let A2 = A + alpha*x*x' be a rank-1 update of matrix A, where x is a vector of appropriate dimension and alpha is a scalar. The Cholesky…
enanone
  • 923
  • 11
  • 25
2
votes
2 answers

gem5 syscall emulation OpenBLAS cblas_dgemm fails with "fatal: syscall mbind (#237) unimplemented"

I am working on a program that I need to simulate program that called OpenBLAS functions with gem5 in SE mode. My code(in C) is as below #include #include void main() { int i=0; double A[6] = {1.0,2.0,1.0,-3.0,4.0,-1.0}; …
2
votes
0 answers

Tsne: fatal error C1083: Cannot open include file: 'cblas.h': No such file or directory

I want to install tsne in python. Running the command: pip install tsne results in the following error: tsne/bh_sne_src/quadtree.cpp(12): fatal error C1083: Cannot open include 'cblas.h': No such file or directory I have tried to install…
Nicolai Iversen
  • 349
  • 1
  • 4
  • 17
2
votes
0 answers

Detect in Cmake if FindLAPACK finds OpenBLAS

I'm using old Cmake version(3.1) which detects OpenBLAS as Generic version in FindLAPACK.cmake Now I can find if openBLAS is installed or not but how to detect if LAPACK returned by FindLAPACK is the OpenBLAS version. Using regex won't work either…
2
votes
0 answers

Openblas does not link to Scipy

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…
Mathieu
  • 31
  • 1