PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Default target for Free PGI

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
TheMatt



Joined: 06 Jul 2009
Posts: 317
Location: Greenbelt, MD

PostPosted: Mon Mar 17, 2014 11:03 am    Post subject: Default target for Free PGI Reply with quote

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:
Code:
(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:
Code:
(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:
Code:
$ 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
Back to top
View user's profile
hongyon2



Joined: 02 Oct 2006
Posts: 40

PostPosted: Mon Mar 17, 2014 1:28 pm    Post subject: Reply with quote

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group