clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL
Apache License 2.0
842 stars 240 forks source link

Installation procedure went wrong? #353

Open lukkio88 opened 4 years ago

lukkio88 commented 4 years ago

Hi,

I cloned your repo, created a build and install folder inside my clBLAS folder. I run then the lines:

> cmake ../src/ -DCMAKE_INSTALL_PREFIX=/home/PersonalRepository/clBLAS/install
> make -j8
> make install

Everything went fine, so I went in the /install/bin folder (I thought these were some examples to run?) but none of them seem to work.

I either get segmentation fault (core dumped) or The environment variable 'CLBLAS_STORAGE_PATH' is not defined

I guess I'm either looking in the wrong place for example, or I did something wrong with the installation.

Can you help?

Update

I figured for the examples I need to enable -DBUILD_SAMPLE=ON. However when running make -j8 I get this error while building:

error: \u2018FloatComplex {aka union <anonymous>}\u2019 has no member named \u2018x\u2019
             printf("%.5f ", result[i * ldb + j].x);
lsl036 commented 2 years ago

Hi, I met the same problem here and it can be fixed by simple change: printf("%.5f ", CREAL(result[i * ldb + j]));

However, after compiling the example_ctrsm, the execution seems to get a segmentation fault like : image

Do you have any idea about it? Were you able to run this example correctly at the time?