admin管理员组文章数量:1123591
I am compiling Fortran code with the ifx
compiler (version 2025.0.4) on Windows. I have the Intel MKL library downloaded as well and I am trying to compile a program using it, like this:
ifx test.f90 -o test.exe -Qmkl
However, when I have this program:
include "mkl_blas.f90"
program main
use BLAS95
implicit none
integer, parameter :: dp = selected_real_kind(15, 307)
real(dp), dimension(2,2) :: A, B, C
A = 1.0
B = 1.0
C = 0.0
call gemm(A, B, C)
write(*,*) C
end program main
it gives me linker error LNK2019, unrecognised extern symbol DGEMM_F95.
However, if I use the old dgemm
function with all the arguments instead of the generic gemm
,
call dgemm("N", "N", 2, 2, 2, 1.d0, A, 2, B, 2, 0.d0, C, 2)
everything works perfectly. What is happening here? I thought that using blas95
was enough to get the generic versions.
本文标签: fortranIfx cannot find modern generic MKL routines like GEMMF95Stack Overflow
版权声明:本文标题:fortran - Ifx cannot find modern generic MKL routines like GEMM_F95 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736582075a1944961.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论