|
[Sponsors] |
May 23, 2018, 07:12 |
dsmcFoam on GPU using RapidCFD?
|
#1 |
New Member
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8 |
Hi.
Has anyone tried using dsmcFoam in RapidCFD? I just wanted to know the modifications that have to be made in the actual code. Thanks. |
|
June 1, 2018, 06:43 |
Error while compiling dsmcFoam for gpu
|
#2 |
New Member
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8 |
Hi, I'm trying to use dsmcFoam with cuda. I tried compiling libraries first. So, firstly I copied src/lagrangian/dsmc and other dependency files to their corresponding locations in the RapidCFD directory. Then I browsed to src/lagrangian/dsmc in the terminal and entered the command 'wmake libso'. It worked, but returned some errors which resulted in abortion of the process. The errors looked like this:
Code:
lnInclude/DsmcCloud.C(274): error: no operator "[]" matches these operands operand types are: Foam::volScalarField [ Foam::label ] lnInclude/DsmcCloud.C(357): error: no operator "[]" matches these operands operand types are: Foam::volScalarField [ Foam::label ] lnInclude/DsmcCloud.C(359): error: no operator "[]" matches these operands operand types are: Foam::volScalarField [ Foam::label ] lnInclude/DsmcCloud.C(433): error: a reference of type "Foam::scalarField &" (not const-qualified) cannot be initialized with a value of type "Foam::gpuField<Foam::scalar>" lnInclude/DsmcCloud.C(435): error: a reference of type "Foam::scalarField &" (not const-qualified) cannot be initialized with a value of type "Foam::gpuField<Foam::scalar>" lnInclude/DsmcCloud.C(437): error: a reference of type "Foam::scalarField &" (not const-qualified) cannot be initialized with a value of type "Foam::gpuField<Foam::scalar>" lnInclude/DsmcCloud.C(439): error: a reference of type "Foam::scalarField &" (not const-qualified) cannot be initialized with a value of type "Foam::gpuField<Foam::scalar>" lnInclude/DsmcCloud.C(441): error: a reference of type "Foam::scalarField &" (not const-qualified) cannot be initialized with a value of type "Foam::gpuField<Foam::scalar>" lnInclude/DsmcCloud.C(443): error: a reference of type "Foam::scalarField &" (not const-qualified) cannot be initialized with a value of type "Foam::gpuField<Foam::scalar>" lnInclude/DsmcCloud.C(445): error: a reference of type "Foam::vectorField &" (not const-qualified) cannot be initialized with a value of type "Foam::gpuField<Foam::vector>" 10 errors detected in the compilation of "/tmp/tmpxft_00000a16_00000000-5_dsmcParcel.cpp4.ii". parcels/derived/dsmcParcel/dsmcParcel.dep:611: recipe for target 'Make/linux64NvccDPOpt/dsmcParcel.o' failed make: *** [Make/linux64NvccDPOpt/dsmcParcel.o] Error 2 Last edited by wyldckat; September 1, 2018 at 17:12. Reason: [QUOTE]->[CODE] |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPU acceleration in Ansys Fluent | flotus1 | Hardware | 63 | May 12, 2023 02:48 |
RapidCFD - OpenFOAM running on GPU | newoscar | OpenFOAM Announcements from Other Sources | 7 | November 1, 2022 23:51 |
[RapidCFD] RapidCFD: Problem of Compilation of a cpu based linear solver to gpu one | samlee | OpenFOAM Community Contributions | 1 | December 31, 2020 17:31 |
[Resolved] GPU on Fluent | Daveo643 | FLUENT | 4 | March 7, 2018 08:02 |