- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Is there any way that matmul functions act like gemm subroutine in mkl blas package ? i write a long code and i used matmul a lot, i want to change them to gemm but a lot of changes should be done. is there any short way?
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Recent versions of ifort include an option /Qopt-matmul which changes MATMUL to call an internal MKL function, same as ?gemm. It's on by default at -O3. You didn't say whether your matrices are large enough to benefit from this; for small ones, setting -O3 while setting /Qopt-matmul- may proved more efficient.
gfortran has a similiar option -fexternal-blas which calls ?gemm, but object level compatitiblity is doubtful on Windows; and OpenMP library compatibility is unlikely.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
thank you very much... my matrices are small ... the size is in range of 36*36 ... but the multipilication is in big loops over 9000 loops sometimes ... should i still use /Qopt-matmul?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Those are probably large enough to gain from the built-in threading implied by /Qopt-matmul, but you may want to compare

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite