|
[Sponsors] |
Problem in integration of GPU based solver with OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 17, 2016, 03:13 |
Problem in integration of GPU based solver with OpenFOAM
|
#1 |
New Member
Puja
Join Date: May 2016
Posts: 1
Rep Power: 0 |
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? |
|
May 17, 2016, 04:03 |
|
#2 |
Member
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 14 |
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 |
|
December 12, 2022, 07:37 |
integration of cufflink to OpenFOAM
|
#3 | |
New Member
Join Date: Dec 2022
Posts: 23
Rep Power: 4 |
Quote:
Thanks |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
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 |
Strange residuals of the Density Based Solver | Pat84 | FLUENT | 0 | October 22, 2012 16:59 |