CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

OpenFOAM and OpenCL

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 21, 2010, 04:38
Default OpenFOAM and OpenCL
New Member
Join Date: Jun 2010
Location: Bangalore, India
Posts: 12
Rep Power: 7
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.

PaGgiE is offline   Reply With Quote

Old   June 21, 2010, 09:16
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 386
Rep Power: 15
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
deepsterblue is offline   Reply With Quote


accelerate, gpu, opencl, openfoam, port

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

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

All times are GMT -4. The time now is 13:57.