compiling Fortran example with ifort
Posted: Fri Apr 22, 2016 12:17 pm
I'm new to Magma, and perhaps my mistake is too simple. I'm just using the example at the moment, not testing.
I used make.inc.mkl-icc to compile Magma. No issues there.
In the example directory, I changed the Makefile to use icc and ifort, and commented out the openblas parts. It all works for the C examples, but the Fortran example doesn't even compile:
Any thoughts? Just for testing, I installed openblas and compiled Magma using make.inc.openblas on the side. The example worked just fine for that case using gfortran and openblas. Ultimately I need to be using ifort.
I used make.inc.mkl-icc to compile Magma. No issues there.
In the example directory, I changed the Makefile to use icc and ifort, and commented out the openblas parts. It all works for the C examples, but the Fortran example doesn't even compile:
Code: Select all
ifort -I../include -Dmagma_devptr_t="integer(kind=8)" -c -o example_f.o example_f.F90
example_f.F90(35): error #6404: This name does not have a type, and must have an explicit type. [COMPLEX]
A(i,j) = complex( re, im )
---------------------------------^
example_f.F90(172): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [EXAMPLE_F]
use example_f
------------^
compilation aborted for example_f.F90 (code 1)