Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
6743 Discussions

minimum value element of a distributed vector

stansy
Beginner
202 Views

Hi,

How to compute minimum absolute value(s) element or index of a distributed vector(s). Is there a function similar to p? amax?

Thanks,

Stan

0 Kudos
5 Replies
TimP
Black Belt
202 Views
You're probably better off writing this in the language of your choice. Even for the uniform strided cases which are covered by ?amax you are likely to get better results with any modern compiler, with the possible exception of Microsoft's.
stansy
Beginner
202 Views
Does this mean that you do not recommend the use of the Intel C + + Composer for Windows? I am surprised why PBLAS does not have a function for calculating the minimum of a distr vector so I asked.
TimP
Black Belt
202 Views
Intel C++ certainly qualifies as a modern auto-vectorizing compiler, and should do a good job with a reasonable source code implementation. Level 1 BLAS functions aren't particularly good candidates for PBLAS, so I'm not surprised the developers extended only a small group of them, and didn't add capabilities. Evidently, if ?amax fits your definition of "distributed," and your problem is large enough, you might be interested in PBLAS.
Todd_R_Intel
Employee
202 Views
stansy, p?amax and i?amax are part of PBLAS and BLAS, but p?amin and i?amin are not part of the standard PBLAS and BLAS (though we added i?amin to Intel MKL when a customer requested it quite a while back). Todd
stansy
Beginner
202 Views
Thank you very much for the comprehensive answer to my question. Stan
Reply