Default target for Free PGI

All,

This is a question that, in truth, doesn’t really matter as when I use Free PGI it’ll only be on one computer, but still, I’m wondering. To wit, does anyone know how to see the default target Free PGI is building to?

For example, on a Linux box I usually do:

(1002) $ pgfortran -V

pgfortran 14.3-0 64-bit target on x86-64 Linux -tp nehalem 
The Portland Group - PGI Compilers and Tools
Copyright (c) 2014, NVIDIA CORPORATION.  All rights reserved.

and I see, ah, it’s nehalem (-64, I assume).

Now on my Macbook Air:

(1) $ pgfortran -V

pgfortran 14.3-0 64-bit target on Apple OS/X developer 
The Portland Group - PGI Compilers and Tools
Copyright (c) 2014, NVIDIA CORPORATION.  All rights reserved.

As can be seen, no tp type is displayed. Now, sysctl says it’s an i7-2677M:

$ sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz

which the fine folks at Wikipedia tell me is a Sandy Bridge, but I was wondering if PGI saw that as well.

Thanks,
Matt

Yes, PGI should see that as well. For some reason, we decided to suppress -tp … from -V. To see target processor, try: pgfortran x.f -v and look for -tp …

Hongyon