Page 1 of 1
MAGMA installation without MKL
Posted: Mon Nov 03, 2014 8:49 am
by ayazhassan
I want to install and test magma sparse iterative solvers without MKL installed.
Let me know how can I do this?
currently I am getting following error:
testing_zdot.cpp:28:24: fatal error: mkl_spblas.h: No such file or directory
Re: MAGMA installation without MKL
Posted: Mon Nov 03, 2014 10:58 am
by hartwig anzt
Ahkhan
in the next release (end of the month) we will have IFDEFs to avoid these problems. For now, I suggest to just delete these lines ( and the funktions using them...)
Please let me knwo whether this works...
Hartwig
Re: MAGMA installation without MKL
Posted: Wed Nov 05, 2014 3:11 am
by ayazhassan
I have deleted those lines but still getting errors. Overall, I am doing the following steps:
1) cd magma-1.5.0
2) cp make.inc.goto make.inc // also removed GOTO lib flags as it is not available in my system
3) make lib
4) sudo make install
5) cd sparse_iter
6) make lib
7) make test
At this point, I am getting following error:
make[1]: *** No rule to make target `../../testing/libtest.a', needed by `testing_zmatrix'. Stop.
Please let me know if i am missing any step here.
Re: MAGMA installation without MKL
Posted: Wed Nov 05, 2014 7:41 am
by ayazhassan
OK. libtest.a is not created.
But still getting following error after seventh step.
g++ -fPIC -Xlinker -zmuldefs testing_zsolver.o -o testing_zsolver \
../../testing/libtest.a -L../../lib -lmagma_sparse -lmagma \
-L/usr/local/cuda/lib64 -L/usr/lib64 \
-lpthread -lcublas -lcudart -llapack -lm -lcusparse
/usr/bin/ld: ../../lib/libmagma.a(dstedx.o): undefined reference to symbol 'dswap_'
//usr/lib/libblas.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [testing_zsolver] Error 1
make[1]: Leaving directory `/home/ayaz/magma-1.5.0/sparse-iter/testing'
make: *** [test] Error 2
Re: MAGMA installation without MKL
Posted: Wed Nov 05, 2014 8:12 am
by ayazhassan
OK. Its working now.
I missed the make test step in magma.
And also, need to link blas library. I just add -lblas in LIB in make.inc and it works fine.