CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Problem in integration of GPU based solver with OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 17, 2016, 02:13
Default Problem in integration of GPU based solver with OpenFOAM
  #1
New Member
 
Puja
Join Date: May 2016
Posts: 1
Rep Power: 0
puja.khirodkar is on a distinguished road
Hi all....
I am trying to integrate my GPU based Conjugate Gradient SOlver in CUDA with OpenFOAM-2.4.0 using PARALUTION-1.0.0 library. But I am facing problem in linking CUDA (.cu) file with .C file .
My file structure is as follows:

new_PCG.C is an OpenFOAM file wherein input is generated and it calls a cg( ) function from conjGrad.cu (CUDA File) file . I have given a path of new_PCG.C in Make/files . To compile conjGrad.cu,I made a shared object (.so) file and given its path in Make/Options . But still it cannot find cg( ) function. It may be because the linking is not done here .

Can anyone suggest me the way I can do this?
puja.khirodkar is offline   Reply With Quote

Old   May 17, 2016, 03:03
Default
  #2
New Member
 
W.T
Join Date: Oct 2012
Posts: 25
Rep Power: 6
dybuk is on a distinguished road
There is a CUDA solvers for foam-extended based on cusp library. Source code can be found in foam-extend repo or on github :
https://github.com/Benjamin-git/cufflink-library

If you analyze code you should find some clues
dybuk is offline   Reply With Quote

Reply

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
How to rewrite a standard OpenFOAM solver as a C++ class cfbaptista OpenFOAM Programming & Development 7 March 23, 2016 05:50
Problem with the convergence of the solver DOliveira OpenFOAM Running, Solving & CFD 3 November 9, 2015 12:25
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 0 January 1, 2014 20:21
Strange residuals of the Density Based Solver Pat84 FLUENT 0 October 22, 2012 15:59


All times are GMT -4. The time now is 23:22.