CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM and gpgpu (https://www.cfd-online.com/Forums/openfoam/60982-openfoam-gpgpu.html)

Lukasz December 18, 2009 16:17

Hi Vincent,

Sounds interesting! We are looking for good testing scenarios where for example our BiCGStab could be validated. Later we will have also CG and preconditioners: Jakobi and DILU.
OpenFoam demos include mostly relative small and sparse matrices. Also "the solver" part takes only about 10-20% of the overall time (probably OF uses SIMPLE algorithm, that's why).

Let me know if you have the application that could benefit from such solver.

Best wishes,
Lukasz

zeliboba December 27, 2009 10:46

Quote:

Originally Posted by Lukasz (Post 240354)
We want to make the installation as easy as possible

I would suggest to try freefoam distribution, it closely follows upstream development and has cmake based build system.

leejc January 21, 2010 16:36

a little more info would be appreciated
 
How very exciting. Could you let us know more about this effort such as the scope and test cases, where it will be released? Also, the double precision boards from Nvidea is coming out in April, any thoughts/plans on using this? Many thanks. J.

Quote:

Originally Posted by Lukasz (Post 240354)
Well, we have been working on a plugin to OpenFOAM that allows easily for replacing existing solvers with their CUDA versions, such as BiCGStab or CG. It should be ready in 1Q of 2010. We want to make the installation as easy as possible (1. run wmake compilation script with our plugin 3. change two OF configuration files 3. run the simulation). I hope this is simple enough but as we are still in the development process any comments will be appreciated.


Lukasz January 26, 2010 17:52

Dear Jerry,

Right now we are in the testing phase. The testing matrices were collected from University of Florida Sparse Matrix Collection. Since 90% of the solving process is devoted to Sparce Matrix Vector Multiplication we focused on testing this operation in the first place. For around 20 different matrices with different size, number of NNZ and the structure the average performance is about 7-8 GFLOPS in average (>10 GFLOPS peak performance) in double precision and 9-10 GFLOPS (13 GFLOPS) in single precision. Of course, everything depends on the matrix structure. The denser the matrix the better. Please also note that because of the memory transfers / PCIe bottleneck it is not worth to use our solvers only for few iterations. The more iterations are needed the better performance we can get.

If you give me your personal email address I could send you more diagrams with preliminary results and more information about the scope of the library.

Best wishes, Lukasz

cknopp February 19, 2010 23:00

Hello! I am very new to using openFOAM, and I was reading about the Live-SUSE USB drive version for my win7 based computer. I have been following the gpgpu.org site for quite some time, and being an AMD solutions provider, I came across this in an email released a few weeks ago:

http://developer.amd.com/Assets/ACML-GPUreadme.pdf

http://developer.amd.com/GPU/ACMLGPU/Pages/default.aspx


1. Is it even possible to compile this lib into OF as a replacement?

2. If it is possible, would it even help?

3. If it is possible, is there anyone out there that can direct me to how to implement it into a Live-USB build to run on my desktop?

I have a AMD 955BE quad core CPU, 8GB DDR3 1600 RAM, dual 4870x2 ATI video cards with 3200 double precision stream cores and 4GB DDR5 RAM. If anyone can make this happen, I would be MORE THAN HAPPY to test it out!

PS: With the new cards and motherboards, it would be possible to scale this distro to run on 12800 double precision paralell Stream processors in a single desktop. I'm sure that anyone can see where that would take the possibilities of todays CFD solver times.

PPS: With this, would it also be possible to include a fractal turbulence modeler? Maybe that would be a bit more accurate than the common "guesstimate" models?

THANKS!

I can be reached at cknopp@gmail.com if anyone would like to contact me directly about this!

Thanks again!

Chris

Lukasz March 3, 2010 16:39

Hi,

You asked me once about the plugin for OpenFOAM with CUDA-based solvers.

Drop me a line and I will send you the documentation (Reference Manual + Programming Guide). We have just finished the implementation and testing (flow in human aorta).

We also have a GPL version for playing around.

Best wishes,
Lukasz

cknopp March 4, 2010 11:30

With the release of OpenCL, I suspect that all GPU accelerated applications (especially commercial code) will be ported due to its multi-manufacturer support, including the Linux/Windows/MacOS operating system support.

I would like to try your plugin as well, and I would LOVE to try any OpenCL implemetation of OpenFOAM that some developers may be working on!

OpenCL is the way of the future. If you are not sold yet, check out the LuxRender forums. They are seeing a 1600% speedup in some cases, and that is utterly rediculous for a software that has been optimized for the last few years. The first CFD solution that is written in CL is going to dominate the commercial market... Especially since the F1 teams that are currently CPU FLOPS limited by regulation could add GPU's and still get around the regulations!

I hope to see more soon!

Lukasz March 4, 2010 11:48

Please introduce yourself and send me your private email address.

Lukasz March 4, 2010 11:52

Quote:

Originally Posted by cknopp (Post 248579)
With the release of OpenCL, I suspect that all GPU accelerated applications (especially commercial code) will be ported due to its multi-manufacturer support, including the Linux/Windows/MacOS operating system support.

I would like to try your plugin as well, and I would LOVE to try any OpenCL implemetation of OpenFOAM that some developers may be working on!

We also considered OpenCL as a potential programming platform. However, they don't support STL which is a serious limitation for optimal programming.

We will wait for the next release.

cknopp March 4, 2010 12:12

Can you clarify what STL is? I know that there are a few devs out there that are using CL for CFD (COMSOL, SYMSCAPE). I have word from members of both teams that they are working on a CL implemetation.

If STL is a limiting factor, can you explain how? Maybe I can ask my contacts to see how they are working around it!

THANKS!

Lukasz March 23, 2010 16:57

STL makes your code look more optimal:
http://pl.wikipedia.org/wiki/Standard_Template_Library

If you have some contacts with OpenCL developers let them know this is a feature request.

gundamhero April 14, 2010 03:34

Hi ,Lukas, could you please send me a copy of documents ,Thank you
 
I'm doing research in CFD about Openfoam and CUDA, Thanks.
my email address is :
mengweichao999@gmail.com



Quote:

Originally Posted by Lukasz (Post 248417)
Hi,

You asked me once about the plugin for OpenFOAM with CUDA-based solvers.

Drop me a line and I will send you the documentation (Reference Manual + Programming Guide). We have just finished the implementation and testing (flow in human aorta).

We also have a GPL version for playing around.

Best wishes,
Lukasz


PaGgiE June 16, 2010 06:44

Hi Lukasz,

I am working upon accelerating OpenFOAM on heterogenious systems with OpenCL. And I would like to have a look upon the plug-in to OpenFOAM that allows replacing existing solvers with their CUDA versions.
It will be nice if you could send me the manual and programmers guide for that.

And can you tell me how much progress has been made by other people, who are working on the same thing as me, like, porting OpenFOAM to OpenCL? If you have some information about it.

Regards,
Gaurav

Lukasz July 15, 2010 06:06

Hi Gaurav,

After registration at speedit.vratis.com you can download the OpenFOAM plugin that allows to replace the standard solvers with their GPU versions. Also, see the documentation about the performance of our CG and BCGSTAB solvers. To my knowledge we are the fastest so far.

Best wishes,
Lukasz

leejc August 16, 2010 14:08

Lukasz,

Do I just sign up at speedit.vratis.com to test out the openfoam plugin? Is it part of the eXtreme package? Also, the eXtreme package Is there a tutorial or a test case I can use to try out the openforam plugin? Also, I am intersted in using it to accelerate the Lagrangian solver in openform (for particle tracking). So, is there a plugin for that?

Jerry


Quote:

Originally Posted by leejc (Post 243352)
How very exciting. Could you let us know more about this effort such as the scope and test cases, where it will be released? Also, the double precision boards from Nvidea is coming out in April, any thoughts/plans on using this? Many thanks. J.


andrea.pasquali September 14, 2010 10:58

Hi,
I'm interesting to GPU for OpenFOAM.
I installed the SpeedIT Classic version but I have a problem you can see here:

http://www.cfd-online.com/Forums/ope...-openfoam.html

Could anyone help me?

Thanks


Andrea

Lukasz November 19, 2010 14:49

Dear All,

We are happy to announce a new release of the OpenFOAM plugin 1.1 (GPL License).
Here is the list of features:

-Multi-GPU support.
-Tested on Fermi architecture (GTX460 and Tesla C2050).
-Automated submission of the domain to the GPU cards (using decomposePar from OpenFOAM).
-Optimized submission of computational tasks to the best GPU card in the system for any number of computational threads.
-Plugin picks the most powerful GPU card for a single thread cases.

You can freely download it at speedit.vratis.com. Enjoy!

Lukasz August 29, 2014 10:32

simple and piso on GPU
 
Now we solve selected industry-relevant OpenFOAM cases on GPU ca. x3 faster vs. Intel Xeon E5649 running 12 cores, e.g. external aero in motorbike, 6m cells.

See this presentation for the latest results.


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