Flags for AMD64

Hi,

I’m trying to compile this simple program:

http://haven.adnc.net/~lionel/loop1.f

I’m running Linux 2.6.8 (Debian sarge AMD64) on a dual Opteron.
The compiler version is 6.0.5

I tried these flags:

pgf90 -fastsse -Mipa=fast,inline loop1.f -o loop1_pg

pgf90 begins to allocate more and more memory (I have 2 GB) . I stop it when it reaches 40% or so.

It works when I don’t use the -Mipa=fast,inline flag, but I’m trying to make it as fast as possible and I read on this forum that you recommend that for the Xeon. Any ideas?

Thanks!

Hi Lionel,

I don’t know, it works for me.

brentl@october:~> pgf90 -V -fastsse -Mipa=fast,inline loop1.f -o loop1_pg

pgf90 6.0-5 64-bit target on x86-64 Linux
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90/any Linux/x86-64 6.0-5
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90/x86 Linux/x86-64 6.0-5
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
IPA: Recompiling loop1.o: stale object file

pgf90 6.0-5 64-bit target on x86-64 Linux
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90/any Linux/x86-64 6.0-5
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90/x86 Linux/x86-64 6.0-5
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
MAIN:
83, function saxpy1 not inlined – argument type mismatch
119, function saxpy3 not inlined – argument type mismatch
brentl@october:~>

Maybe it has something to do with the Debian installation?

Compile with -v and post the output. Also, there should be a localrc file in the bin directory under /usr/pgi (or $PGI), where the pgf90 command is, that might hold some clues.

gilthoniel-lionel:pgf90 -V -fastsse -Mipa=fast,inline loop1.f -o loop1_pg
pgf90 6.0-5 64-bit target on x86-64 Linux
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90/any Linux/x86-64 6.0-5
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
PGF90/x86 Linux/x86-64 6.0-5
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
cleaning up after signal(2)…

I have to kill it when pgipa hogs %40 of my 2GB of memory.

This is my localrc:

set LFC=-lg2c;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib/gcc-lib/x86_64-linux/3.3.5;
set GCCINC=/usr/lib/gcc-lib/x86_64-linux/3.3.5/include;
set G77DIR=/usr/lib/gcc-lib/x86_64-linux/3.3.5;
set THROW=__THROW=;

makelocalrc executed by root Fri Aug 5 17:01:13

Thanks!

Hi Lionel,

We’ve tried several different systems and all seem to work correctly. However, we do not have Debian installed here so we’re unable to recreate your environment. What is the output when compiled with “-v”? (little “-v” means verbose, “-V” means version) If you don’t kill the process, does it finish? Have you tried a different OS?

Thanks,
Mat