PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

FAQ: Running GPU programs on systems with no GPU

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



Joined: 26 Nov 2007
Posts: 12

PostPosted: Thu Jun 18, 2009 1:59 pm    Post subject: FAQ: Running GPU programs on systems with no GPU Reply with quote

Q. Can I run my program on a machine that doesn't have a GPU accelerator, or do I have to manage two separate binaries?

A. Yes; PGI accelerator compilers support the PGI Unified Binary feature, which allows you to generate optimized code for multiple CPU types in a single executable, selecting at runtime, depending on the actual processor on which it is run, which code to run. We have extended this for accelerators to generate code that will run on the GPU or on the host, in the same executable. At run time, the program will test for presence of the GPU, and use it if it is available. It there is no GPU, the program will run the host-only code.
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