Questions tagged [cblas]

59 questions
0
votes
1 answer

Simple cblas gemm code but strange result

The following is the c code const int M = 4; const int N = 1; const int K = 2; const int LDA = M; const int LDB = K; const int LDC = M; float input_data[2]{1, 1}; float weight_data[8]{1.1, 2.01, 3.001, 4.0001, 5.1, 6.01, 7.001, 8.0001}; float…
daquexian
  • 169
  • 3
  • 17
0
votes
0 answers

Using Eigen LIbrary with CBLAS

I know that I can ask Eigen to use a Blas library by defining the variable "EIGEN_USE_BLAS". I have a very efficient CBLAS implementation available on my system. Is it possible to make Eigen to use that CBLAS library?
Soo
  • 885
  • 7
  • 26
0
votes
1 answer

CBLAS installation issue: undefined reference to `_gfortran_store_exe_path'

I downloaded CBLAS (cblas.tgz) from http://www.netlib.org/blas/ and tried to install CBLAS and has the following error: [kokep@n007 CBLAS]$ CC=gcc-8.1 LDFLAGS="-L/home/kokep/bin/lib" CFLAGS="-I/home/kokep/bin/include" make ( cd src && make…
bison72
  • 324
  • 3
  • 15
0
votes
2 answers

Why does using `cblas_ccopy` cause intermittent memory errors?

The code below simply tries to copy values from one pointer to another, using cblas_ccopy, but it results in an malloc: *** error ... incorrect checksum for freed object error about one third of the time. Why doesn't it always work? import…
ASDFQWERTY
  • 399
  • 4
  • 8
0
votes
1 answer

File format not recognized error while installing CBLAS on a Ubuntu machine

I need to install CBLAS on an Ubuntu 16.04.4 machine. The following values have been set in the Makefile.in file of CBLAS: SHELL = /bin/sh PLAT = LINUX BLLIB = /home/ubuntu/BLAS-3.8.0/blas_LINUX.a CBLIB = /home/ubuntu/CBLAS/lib/cblas_LINUX.a CC =…
Vasanti
  • 1,207
  • 2
  • 12
  • 24
0
votes
2 answers

BLAS Functions Dgemm but all matrices are multiplied by a Scalar

Is there any Dgemm like matrix call that scales the a and b matrix? (A, B, C are scalars). IE c = C * c + (A*op(a)) * (B*op(b)); Bonus points is therer any reason this isn't supported or is it just uncommon in Linear-Algebra and therefor…
0
votes
0 answers

cython magic cannot find include file when it is in the same directory

I am getting this error upon running the following code block in ipython: %%cython cdef extern from "cblas.h": enum CBLAS_ORDER: CblasRowMajor=101 CblasColMajor=102 enum CBLAS_TRANSPOSE: CblasNoTrans=111 …
ffffffyyyy
  • 117
  • 2
  • 7
0
votes
0 answers

cython failed with exit status 2 when trying to access library

cdef extern from "cblas.h": enum CBLAS_ORDER: CblasRowMajor=101 CblasColMajor=102 enum CBLAS_TRANSPOSE: CblasNoTrans=111 CblasTrans=112 CblasConjTrans=113 AtlasConj=114 This code returns the error CompileError: Command…
ffffffyyyy
  • 117
  • 2
  • 7
0
votes
1 answer

CBLAS mac OS X Undefined symbols for architecture x86_64 error

I'm trying different C linear algebra libraries for my projects and now I want to learn BLAS (CBLAS). I am trying to follow the tutorial here. I realised that cblas is already built in the xcode and by adding the flag gcc foo.c -framework…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

openblas sgemv CblasRowMajor implementation returns wrong results (cblas_sgemv)

I did some test using cblas_sgemv in openblas and found that it returned a wrong result in my test case. A is 1 2 3 4 5 6 B is 1 2 The output C should be 5 11 17 But, it outputs 5 14 0 Here is the sample…
sushiman
  • 13
  • 1
  • 4
0
votes
2 answers

How to compute the sum of the values of elements in a vector using cblas functions?

I need to sum all the elements of a matrix in caffe, But as I noticed, the caffe wrapper of the cblas functions ('math_functions.hpp' & 'math_functions.cpp') is using cblas_sasum function as caffe_cpu_asum that computes the sum of the absolute…
Ali Sharifi B.
  • 595
  • 1
  • 6
  • 15
0
votes
1 answer

Cblas_sgemm produces wrong results

I have a problem using the sgemm function of cblas. Here is the code: #include #include #include #include #include #define MATRIX_DIM 5 int main(){ float *a_mat =…
kmentis
  • 23
  • 5
0
votes
1 answer

Using cuBLAS in OpenAcc

I want to replace the call to "cblas_dgemm()" with cublasDgemm(). Here is the original wrapper from Shark machine learning library: inline void gemm( CBLAS_ORDER const Order, CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, int M, int N,…
Ali Jooya
  • 75
  • 7
-1
votes
1 answer

NVBLAS through CBLAS

I have a C++ code and I used CBLAS to compute dgemm and dtrsm. I am interested to use GPUs for performance. With the tests I have done I could use NVBLAS using nvblas.h, however it is not close to CBLAS. I think I can change my code to call dgemm…
Aznaveh
  • 558
  • 8
  • 27
1 2 3
4