Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

ScaLAPACK Example in C

schmmd
Beginner
1,215 Views
Does anyone know of a ScaLAPACK example in C? I need to write a simple program that runs psgesvd on a single machine but utilizing all of the cores. Is this the write approach to run an svd decomposition using multiple cores? I do not believe that sgesvd takes advantage of more than one core (at least, in my example it does not).
0 Kudos
4 Replies
ArturGuzik
Valued Contributor I
1,215 Views
Quoting - schmmd
Does anyone know of a ScaLAPACK example in C? I need to write a simple program that runs psgesvd on a single machine but utilizing all of the cores. Is this the write approach to run an svd decomposition using multiple cores? I do not believe that sgesvd takes advantage of more than one core (at least, in my example it does not).

Hi,

you don't need ScaLAPACk to do it (on single machine). Just "simple" MKL LAPACK and linking with libiomp5 lib. See the docs (Chapter 5 of User's Guide). Which platform (IA32/x64) are you on?

A.
0 Kudos
schmmd
Beginner
1,215 Views
Well, that's great news that I can just link with that library. I am running on x64. Thanks for the reference to the chapter in the user guide too. I will figure this out.

If anyone does know of a C example for ScaLAPACK I would still be interested, however. I will likely need to expand my SVD to a cluster.
0 Kudos
Gennady_F_Intel
Moderator
1,215 Views

There are no such examples for ScaLapack functionality.
--Gennady

0 Kudos
Tabrez_Ali
Beginner
1,215 Views
Quoting - schmmd
Well, that's great news that I can just link with that library. I am running on x64. Thanks for the reference to the chapter in the user guide too. I will figure this out.

If anyone does know of a C example for ScaLAPACK I would still be interested, however. I will likely need to expand my SVD to a cluster.

Here's a trivial Fortran example. You should be able to figure out the equivalent C code easily.

0 Kudos
Reply