CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

OpenFOAM and OpenCL

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2010, 04:38
Default OpenFOAM and OpenCL
  #1
New Member
 
Gaurav
Join Date: Jun 2010
Location: Bangalore, India
Posts: 12
Rep Power: 15
PaGgiE is on a distinguished road
Hi everyone,

I am working upon porting CFD equations to GPU, which is nothing but accelerating OpenFOAM by porting some of relatively more time consuming as well as parallelizable codes to OpenCL. There are some questions that i wanted to ask:

1. Which profiler should be best to use for OpenFOAM? If anyone has used a profiler or has an idea about them, please guide me through it.

2. As currently I have almost completely understood icoFoam and simpleFoam solvers and i will try to port some parts of those solvers only. So my question is, does anyone know, which parts of these solver codes are parallelizable, which can be ported to OpenCL?

If anyone else working on the same kind of things, then probably we can discuss a few things in this thread.

Thank you.

Regards,
Gaurav
PaGgiE is offline   Reply With Quote

Old   June 21, 2010, 09:16
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
I find the callgrind tool in valgrind (with a kcachegrind post-process) most useful to get a relatively quick idea of the most expensive aspects of the code. You can also compile your code in profile-mode and use gprof.

I'm more than willing to bet that the most expensive aspect of any CFD solver would be the matrix-solvers (and more specifically, the sparse matrix multiply). I believe that there are a few folks who have already ported some solvers to CUDA, so you can take a cue from them.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Reply

Tags
accelerate, gpu, opencl, openfoam, port


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM in OpenCL cknopp OpenFOAM 0 March 4, 2010 10:33
OpenFOAM and OpenCL Arrow OpenFOAM 6 October 26, 2009 10:25


All times are GMT -4. The time now is 17:06.