PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

how to compile using -ta=nvidia suboptions

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
linux10



Joined: 13 Jul 2009
Posts: 3

PostPosted: Mon Jul 13, 2009 7:23 am    Post subject: how to compile using -ta=nvidia suboptions Reply with quote

Tried to compile an accelerated program using the following flag $ pgcc -ta=nvidia,cc11 program.c as well as trying $ pgcc -ta=nvidia(cc11) program.c as shown in the User's Guide for 9.0 Are these suboptions (cc10, cc11, cc13) available for use yet, and if so what is the format for compiling using them?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6021
Location: The Portland Group Inc.

PostPosted: Mon Jul 13, 2009 3:03 pm    Post subject: Reply with quote

Hi linux10,

The first option you used is correct (i.e. "pgcc -ta=nvidia,cc11 program.c") if your NVIDIA card uses compute capability 1.1. By default the compiler generates code targeting compute capability 1.3. In other words, "-ta=nvidia" implies "cc13" unless "cc10" or "cc11" are used.

Hope this helps,
Mat
Back to top
View user's profile
linux10



Joined: 13 Jul 2009
Posts: 3

PostPosted: Tue Jul 14, 2009 6:25 am    Post subject: Reply with quote

Hi Mat,

When using $ pgcc -ta=nvidia,cc11 program.c I receive the following error:

pgcc-Error-Switch -ta with unknown keyword cc11
-ta=nvidia|analysis|nofma|none|time
Choose target accelerator
nvidia Select NVIDIA accelerator target
analysis Analysis only, no code generation
nofma Don't generate fused mul-add instructions
none Select NO accelerator target
time Collect simple timing information

Are the cc suboptions just not implemented with the 9.0 version yet or is there something else I'm missing?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6021
Location: The Portland Group Inc.

PostPosted: Tue Jul 14, 2009 8:26 am    Post subject: Reply with quote

Hi linux10,

Something else is happening since cc11 is implemented in 9.0.
Code:
% pgcc -V

pgcc 9.0-1 64-bit target on x86-64 Linux -tp k8-64e
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2009, STMicroelectronics, Inc.  All Rights Reserved.
% pgcc -ta=nvidia,cc11 program.c -o prog.out
% prog.out
100000 iterations completed


What is the output of "pgcc -V"?

- Mat
Back to top
View user's profile
linux10



Joined: 13 Jul 2009
Posts: 3

PostPosted: Tue Jul 14, 2009 10:58 am    Post subject: Reply with quote

Got it to work. Path was pointing to the previous version.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming 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