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
MAGMA installation without MKL
-
hartwig anzt
- Posts: 90
- Joined: Tue Sep 02, 2014 5:44 pm
Re: MAGMA installation without MKL
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
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
-
ayazhassan
- Posts: 5
- Joined: Mon Nov 03, 2014 8:44 am
Re: MAGMA installation without MKL
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.
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.
-
ayazhassan
- Posts: 5
- Joined: Mon Nov 03, 2014 8:44 am
Re: MAGMA installation without MKL
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
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
-
ayazhassan
- Posts: 5
- Joined: Mon Nov 03, 2014 8:44 am
Re: MAGMA installation without MKL
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.
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.