[Trilinos-Users] Why isn't BLAS used more in Epetra?

Sven Baars s.baars at rug.nl
Mon Sep 21 04:10:58 EDT 2015


Hey everyone,

I was wondering why BLAS isn't used more often. It seems to me that
you'd want to use this as much as possible. For instance in the Update
method of the Epetra_MultiVector. I attached an example where I test its
performance. Here is my output on my local machine:

$ ./test
Time with Update 1.35864
Time with daxpy_ 1.05639

and it's even threaded:

$ OMP_NUM_THREADS=4 ./test
Time with Update 1.38495
Time with daxpy_ 0.66636

Note that I don't compile Epetra with OpenMP support, because for me
it's bugged in some places. But I can't imagine that the implementation
in Epetra is better than the BLAS one. So why isn't BLAS used more often?

Cheers,
Sven

P.S. I know Teuchos has BLAS wrappers, but I just wanted to make sure I
was actually using BLAS, and that Tpetra probably does this better, but
Tpetra's API is still too unstable for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multivector_slow.cc
Type: text/x-c++src
Size: 1560 bytes
Desc: not available
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150921/c3bbcf49/attachment.bin>


More information about the Trilinos-Users mailing list