Magma Example gives wrong results
Posted: Tue Jul 10, 2018 11:43 am
Hi,
First of all I'd like to thank you for your great work developing MAGMA. I just finished installing MAGMA and compiled the examples without any warnings or errors. But when I run example_sparse, I get just zeros in the result Vector. I tried to change the copy in the end from dx to db to see if it does anything and in this case I get the right output of the b values (3.0). When I try the example_sparse_operator example, I get the following output:
The other two examples have no value outputs... I do not know, how to find the problem, because there are no errors or warnings when compiling. Maybe one of you can help me. I would love to test MAGMA in my application.
I am using Ubuntu 16.04 (gcc 5.4.0), CUDA 9.2 and a GTX 980
I used option 2 from here https://gist.github.com/pachamaltese/af ... 61a46b3aa8 to install MKL
and added the following lines in my .bashrc:
I hope that someone can help me =)
Thanks in advance
Martin
First of all I'd like to thank you for your great work developing MAGMA. I just finished installing MAGMA and compiled the examples without any warnings or errors. But when I run example_sparse, I get just zeros in the result Vector. I tried to change the copy in the end from dx to db to see if it does anything and in this case I get the right output of the b values (3.0). When I try the example_sparse_operator example, I get the following output:
Code: Select all
iterations: 1 residual: 1.4828e+03
values:
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
-1050.0000
I am using Ubuntu 16.04 (gcc 5.4.0), CUDA 9.2 and a GTX 980
I used option 2 from here https://gist.github.com/pachamaltese/af ... 61a46b3aa8 to install MKL
and added the following lines in my .bashrc:
Code: Select all
#for magma
export CUDADIR=/usr/local/cuda
source /opt/intel/mkl/bin/mklvars.sh intel64
source /opt/intel/bin/compilervars.sh intel64
export LD_LIBRARY_PATH=/usr/local/magma/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Thanks in advance
Martin