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

Problem in integration of GPU based solver with OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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
Member
 
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 13
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

Old   December 12, 2022, 06:37
Default integration of cufflink to OpenFOAM
  #3
New Member
 
Join Date: Dec 2022
Posts: 23
Rep Power: 3
Nitish25 is on a distinguished road
Quote:
Originally Posted by dybuk View Post
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
Hi can you kindly tell me the procedure to get the "Integrating OpenFOAM and GPUs using cufflink library"
Thanks
Nitish25 is offline   Reply With Quote

Reply


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


All times are GMT -4. The time now is 19:01.