Intel® Fortran Compiler for Linux* and Mac OS X*

Alignment of ALLOCATABLES

Is there any method to specify data alignment requirements
for allocatable arrays? I need this to be able to call
FFTW routines when the FFTW library is compiled to use
SSE2 instructions. I believe there is a 32-byte alignment
requirement in this case. My code definitely crashes
when linked against an sse3 version of FFTW but is OK
with a non-sse2 version.

ignoring unknown option '-byteswapio'

I am trying to compile a program prepared to be compiled or work under " pgf77" fortran. In the makefile there is the next sentences:
F77 = pgf77

FLGS = -byteswapio

I changed the first one to "F77 = ifort" because I am using Intel Fortran 9.0, but I have an error (or a warning) with the function -byteswapio:

ifort: Command line warning: ignoring unknown option '-byteswapio'

Could anyone help me and tell me what I have to put in the place of '-byteswapio'?

Thanks for all

generate a library

Hello,

I would like to generate a *.so library. To do this I had a makefile. The complitaion work but no *.so file is generated. Can someone tell me how to do this.

Best regards,

Didace

Here is my makefile
________________________________________________________________

.SUFFIXES: .f90 .mod
FORTRAN=ifort
LINK=$(FORTRAN)
FFLAGS = -O3 -fpp -g
LDFLAGS= -no -ipo -shared

.f90.o:
$(FORTRAN) $(FFLAGS) -c $< -o $@

.f90.mod:
$(FORTRAN) $(FFLAGS) -c $<

.f.o:
$(FORTRAN) $(FFLAGS) -c $<

assumed shape array, explaination please!

Hi there,
could someone explain to me why the attatched code ends with a segmentation fault? It doesn't seem like a big enough array to be causing memory type problems, at least it doesn't to me!

program testmatrix

use module_2

implicit none

real, dimension(:, :), allocatable :: matrix

allocate(matrix(3000, 3000))

matrix = 1.0

call trythis(matrix)

deallocate(matrix)

end program testmatrix

module module_2

use module_1

implicit none

contains

subroutine trythis(x)

Direct access file and double precision complex

Hi!
I want to write a 1000x1000 complex matrix "mat" in a direct access file.
When the matrix is in simple precision, my code works.
When the matrix is in double precision, my code fails, with a segmentation fault.
Attached is a very short test program which :

- initializes a complex matrix (the working precision "wp" can be made equal to "sp" (single precision) or "dp" (double precision))
- computes the length of the record rlength
- open a direct access file "mat.dat" with RECL=rlength
- writes mat in mat.dat

linker flag -export-dynamic?

Does anyone know what the linker flag -export-dynamic does? Apparantely it works with version 8.0 but it doesn't with 9.0. Is there an equivalent flag for version 9.0?

I am trying to compile and link in a fortran user subroutine into a Fininte Element code called ABAQUS.

I am running redhat 9 with Athlon 3000+.

The warning:

ifort: Command line warning: ignoring unknown option '-export-dynamic'

The ABAQUS executable then quits with this error message:

Licenses

Please the customer has this environment:

1. license single user - Fortran, C++ and MKL ( Linux)

Hardware ; SGI Altix.

There are 5 nodes.

Question:

Every compilation is done in the node control ( first node).

If the time of cpu is exceeded ( there is a quote in this node)

automatically these jobs (compilations) are sending for other node ( any one of the other four).

Is it necessary to have other kind of license ?

Thanks again

Alfredo

Memory error from PRINT * under Fedora core 2

I have the file tst.f90, which only contains the code

PROGRAM TEST
  PRINT *
END PROGRAM TEST

I compile this, using ifort version 9.0, as

ifort tst.f90 -oftest

If I test the generated executable ftest for bad memory behaviour with Valgrind's memory checking tool, using the command

valgrind --tool=memcheck ftest

I get the following output:

Subscribe to Intel® Fortran Compiler for Linux* and Mac OS X*