Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library
- is there some mkl function for transposing rectangle matrix in mpi?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

yongbei_ma_

New Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-07-2015
06:35 PM

194 Views

is there some mkl function for transposing rectangle matrix in mpi?

Link Copied

3 Replies

Ying_H_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-08-2015
08:55 PM

194 Views

Hi yongbei m.

It seems two questions here

R1. transposing function

R2. MPI support

So are you working on large matrix , which are distributed on nodes in a cluster?

You may check the MKL manual

for R1.

mkl_?imatcopy

Performs scaling and in-place transposition/copying of

matrices

mkl_?omatcopy

Performs scaling and out-place transposition/copying

of matrices.

Syntax

Fortran:

call mkl_somatcopy(ordering, trans, rows, cols, alpha, a, lda, b, ldb)

call mkl_domatcopy(ordering, trans, rows, cols, alpha, a, lda, b, ldb)

call mkl_comatcopy(ordering, trans, rows, cols, alpha, a, lda, b, ldb

For R2,

Please see ScaLAPACK Auxiliary and Utility Routines 7,which support MPI. But seems no direct function of the purpose.

On the other hand, as you see, most of function of Scalapack support Transpose as input. What is the follow operation after you get the transpose of the matrix? it would be better if there are chance to combine the transpose and other functionality together.

Best Regards,

Ying

Sebastian_L_1

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-13-2015
02:17 AM

194 Views

Ying_H_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-13-2015
08:40 PM

194 Views

Hi Sebastian,

thanks for the reply. right, these functions should be able to transposes a distributed matrix. The function call is like below pstran(m, n, alpha, a, ia, ja, desca, beta, c, ic, jc, descc), but it does need mpi communicator out of functions, also need create desca, descc, which have the position and mpi rank information. So the function don't need MPI communicator itself, but encaps MPI communicator internally. .

We have some discussion about the matrix distrubution and MKL PBLAS function call in forum thread like

https://software.intel.com/en-us/forums/topic/561007

https://software.intel.com/en-us/forums/topic/562259. ;

It also include some examples. You can distribute the matrix manually like the sample or call functions, pstran, psadd (also suppose transpose) You may refer to them.

Best Regards,

Ying

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.