Skip to content

Compatibility with Intel Fortran compiler #433

@xiexiguo

Description

@xiexiguo

I try to compile a simple fortran code which using zdotc function. I found that when the code is compiled using intel fortran complier and linked with blis, the result is wrong. It is OK when using gfortran. So I am wandering whether blis is compatible with Intel fortran complier.
Blis is compiled with gcc, with blas and cblas interface enabled. I searched the code, and found all the code is C/C++, no fortran code (except some test code) is found. So, how fortran code can call blas function? Is blis only compatible with GNU compiler?
The following is the test code.
`
program zdotc_test

 implicit none

 complex*16 :: a(10), b(10)
 complex*16 :: c
 complex*16 :: zdotc
 integer*4  :: i

 do i = 1,10
     a(i) = cmplx(i, i)
     b(i) = cmplx(i, 0)
 end do

 c = zdotc(10, a, 1, b, 1)

 write(*,*) a
 write(*,*) b
 write(*,*) c

 end program

`

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions