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 on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

modification of MKL source code

xilin1
Beginner
369 Views
hello,
i would like to perform the operation A*D*B, where D is diagonal, and A,B are appropriate dimensions using BLAS. there are no routines specific to diagonal matrices, so i was able to make a one-line modification to the DGEMM code available on netlib to implement this. it runs much slower than the BLAS in MKL (of course). is the source code available to make such a modification?
0 Kudos
1 Reply
TimP
Honored Contributor III
369 Views
If you compiled netlib DGEMM with a vectorizing compiler, it ought to perform well on problems which don't need cache blocking. By removing the if tests which skip loops involving 0. operations, you would give ifort -O3 more freedom to optimize.
0 Kudos
Reply