Questions tagged [cblas]

59 questions
0
votes
0 answers

Does GEMM require additional memory to work?

Context: I am using LAPACK/BLAS/MKL in C to diagonalize and multiply matrices of side length O(10000). Normally, diagonalization procedures like zheev and dsyev in LAPACK/MKL require additional memory. This is allocated by passing LWORK=-1 and then…
adch99
  • 340
  • 1
  • 7
0
votes
1 answer

How can I see the actual value in memory of a pointer, C++?

Ok, I took this code from some exercises of Intel for MKL, the code creates 2 matrixes 4x4 and multiplies them by using "cblas_dgemm". As result, the code gives you the time the program took to multiply those matrixes, so, I comprehend in some way…
0
votes
1 answer

robospect: symbol lookup error: /usr/local/lib/libgsl.so.27: undefined symbol: cblas_dgemm

For my thesis I need to run a routine that measures the equivalent widths of spectral lines (robospect: https://home.ifa.hawaii.edu/users/watersc1/robospect/. I use the most recent version in combination with gsl-1-16, since robospect does not work…
0
votes
0 answers

Using cblas_dgemm in C and returning the product matrix in python

I am fairly new to parallel computing and we have been assigned to implement a matrix algorithm in C for later use in python. The problem comes when my function mlsa from C is implemented in Python, because it returns a unique double value, when my…
0
votes
0 answers

How to divide dgemm in two parts and send each part to a different thread?

I'm testing the performance of DGEMM and SGEMM on multiple libraries on the Apple M1 with a program that does the following: set dimensions 1000x1000, call cblas_dgemm using alpha and beta as 2 and repeat with dimensions 2000x2000, 3000x3000, etc.…
Javier
  • 1
  • 1
0
votes
0 answers

cblas_ddot is slower than my own dot product implementation

for some reason when I use cblas_ddot for dot product between vectors, it takes more time than my own inner product (in the comments you can see my inner product). My lecturer said that the library should be implemented faster at the CPU level. My…
Roy Amoyal
  • 717
  • 4
  • 14
0
votes
2 answers

Intel MKL ERROR: incorrect parameter when calling gemm()

I have this code: void my_function(double *image_vector, double *endmembers, double *abundanceVector, int it, int lines, int samples, int bands, int targets) { double *h_Num; double *h_aux; double *h_Den; int lines_samples =…
gamersensual
  • 105
  • 6
0
votes
1 answer

CBLAS - ** On entry to SGEMM / DGEMM, parameter number X had an illegal value?

I am calling cblas_sgemm using the following parameters: order: CblasRowMajor transA, transB: either CblasTrans or CblasNoTrans M: the number of rows (height) of the matrix op(A) and of the matrix C N: the number of columns (width) of the…
PolarBear2015
  • 745
  • 6
  • 14
0
votes
1 answer

Using the cblas_chpr function

I'm having issue when I tried to use the cblas_chpr() function from the cblas library to calculate the correlation matrix of a float complex vector. After downloading the Lapack v3.10.0 Library from netLib.org, I compiled it and copied the…
Tam
  • 1
  • 2
0
votes
0 answers

cblas - unresolved external symbol referenced in function _main

For starters, I went through several similar asks and topics and found no answer (or didn't know how to apply it). I'm using VS 2019 and newest LAPACK. For starters, here's what I did so far: downloaded LAPACK repo changed the cmake file to also…
Daractive
  • 67
  • 6
0
votes
1 answer

Undefined References in CBLAS when testing GSL with CMake

I've just installed GSL on my Deepin OS(Linux), and for testing my installation I'm trying to compile a testing file. When compiling with gcc, it works properly, but when using CMake, some Undefined Reference error occurs. I tried compiling the file…
Zhiyuan
  • 1
  • 1
0
votes
1 answer

What are the differences between official reference versions of BLAS?

My package manager has a number of BLAS versions (specifically CBLAS) available: [IP-] [ ] virtual/cblas-1.0:0 [-P-] [ ~] virtual/cblas-3.6:0 [-P-] [ ~] virtual/cblas-3.7:0 If I look at their configuration, I can see they are extracted from…
Luciano
  • 2,388
  • 1
  • 22
  • 33
0
votes
1 answer

magma_dpotrf_gpu gives segmentation fault

I have a cblas and lapack code that I'm trying to "convert" to magma code to take advantage of the GPU. This is my CPU code that works fine: cblas_dsyrk(CblasColMajor,CblasUpper,CblasTrans,n,m,1.0,A2,m,…
thejoker
  • 31
  • 8
0
votes
1 answer

Where should I put cblas.h so that my build of mxnet will find it?

I'm trying to install mxnet by cloning a git repository as follows: git clone --recursive https://github.com/dmlc/mxnet However, when I try to build it by dropping into the mxnet directory and running make as follows: make -j $(nproc) USE_OPENCV=1…
user1245262
  • 6,968
  • 8
  • 50
  • 77
0
votes
1 answer

How do the leading dimension parameter for submatrices in cblas_dgemm() works?

I have three matrices A,B and C: And the matrix-matrix product for general matrices: void cblas_dgemm(const enum CBLAS_ORDER __Order, const enum CBLAS_TRANSPOSE __TransA, const enum CBLAS_TRANSPOSE __TransB, const int __M, const int __N, const int…
Suslik
  • 929
  • 8
  • 28