CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[RapidCFD] dsmcFoam on GPU using RapidCFD?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2018, 07:12
Default dsmcFoam on GPU using RapidCFD?
  #1
New Member
 
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8
satish000yadav is on a distinguished road
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.
satish000yadav is offline   Reply With Quote

Old   June 1, 2018, 06:43
Default Error while compiling dsmcFoam for gpu
  #2
New Member
 
Satish Yadav
Join Date: Mar 2018
Posts: 14
Rep Power: 8
satish000yadav is on a distinguished road
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
I'm not sure if I should change the code in the files where the error is occuring, since these files were created in the compile process itself. Please let me know what could be done.

Last edited by wyldckat; September 1, 2018 at 17:12. Reason: [QUOTE]->[CODE]
satish000yadav 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
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


All times are GMT -4. The time now is 06:51.