PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

GPU Accelerated Process

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



Joined: 06 Aug 2012
Posts: 3

PostPosted: Mon Aug 06, 2012 8:23 pm    Post subject: GPU Accelerated Process Reply with quote

Hi,

I am looking to accelerate some old(ish) games on a Quadro 6000. Is there any way to write a program that allows some of the CPU workload to be offloaded onto the GPU (as far as processing goes)?

I am mainly interested in creating a program that would allow me to speed up/ run just about any CPU process on a GPU as well.

Thanks.
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Aug 07, 2012 10:09 am    Post subject: Reply with quote

Hi Agastya,

Quote:
Is there any way to write a program that allows some of the CPU workload to be offloaded onto the GPU (as far as processing goes)?
Yes, there are many ways to do this. PGI offers two main approaches:

    1) a pragma/directive based approach, openACC, where the program inserts hints to the compiler where to offload the compute intensive portions to the GPU.
    2) CUDA Fortran where the programmer explicitly writes and manages the GPU code as part of the larger CPU program.

Other methods would include NVIDIA's CUDA C/C++ and OpenCL. While PGI does also offer both CUDA C and OpenCL compilers, neither currently targets NVIDIA GPUs.

You can find more information about our product offerings from our home page: http://www.pgroup.com/index.htm.

Each method has it's strengths and weaknesses and which method is best for you largely depends upon your project and your skill level.

Quote:
I am mainly interested in creating a program that would allow me to speed up/ run just about any CPU process on a GPU as well.
A GPU is a very specialized architecture. They work very well on highly parallel, compute intensive regions of code, but perform poorly for serial code. So a GPU will not allow you speed-up just about any CPU process, but in the cases where it can speed-up your code, it can do so by quite a lot.

- Mat
Back to top
View user's profile
Agastya Parikh



Joined: 06 Aug 2012
Posts: 3

PostPosted: Tue Aug 07, 2012 4:03 pm    Post subject: Reply with quote

Hi,

Thanks for the reply!

What I am trying to do is accelerate an Ansys CFD solver process (in addition to the games I was speaking of). It is highly parallel and compute intensive.

I do not have the source code, so is there any way to write a program which would interface sort of like a driver--a go-between process that could offload CPU load from a completely different process (Say, something like flight simulator, or a pcmpi thread) to the GPU?

As I understand it, both the CUDA fortran and openACC need the source code.
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Aug 08, 2012 3:44 pm    Post subject: Reply with quote

Hi Agastya Parikh,

Sorry but in order to take advantage of the GPU, the source code needs to be modified. CPU binaries can't be run on a GPU. Maybe there is a tool out there that can do some type of conversion, but I highly doubt it.

You might want to check with Ansys if they have a GPU enabled version.

- Mat
Back to top
View user's profile
Agastya Parikh



Joined: 06 Aug 2012
Posts: 3

PostPosted: Wed Aug 08, 2012 4:31 pm    Post subject: Reply with quote

OK, that is what I thought the case would be, but I wanted to check.

Do you have any clue what the source code would look like (what extensions it would have)? There are a whole bunch of non-executables and non-dlls in the ANSYS folder--mainly *.lib files.

ANSYS doesn't currently have GPU support for their CFD software, which is why I was curious about this.

Thanks.
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