|
[Sponsors] |
[RapidCFD] RapidCFD: Problem of Compilation of a cpu based linear solver to gpu one |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 8, 2018, 20:07 |
RapidCFD: Problem of Compilation of a cpu based linear solver to gpu one
|
#1 |
New Member
Join Date: May 2016
Posts: 14
Rep Power: 9 |
Dear All,
I am trying to convert a cpu based linear solver in fvSolution to gpu based linear solver. However, I met this following problem: wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file bicgStabSolver.C bicgStabSolver.C(118): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(118): error: no operator "[]" matches these operands operand types are: const Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(118): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(174): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(174): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(174): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(174): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(184): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(184): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(184): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(196): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(196): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(196): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(196): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(201): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(201): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] bicgStabSolver.C(201): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] 17 errors detected in the compilation of "/tmp/tmpxft_0000119a_00000000-7_bicgStabSolver.cpp1.ii". make: *** [Make/linux64NvccDPOpt/bicgStabSolver.o] Error 2 Could anyone help me out? Thank you for your time. Cheers, Sam |
|
December 31, 2020, 17:31 |
|
#2 | |
Member
Join Date: Mar 2019
Posts: 81
Rep Power: 7 |
Quote:
I am also trying to implement "temperatureLimitsConstraint" in fvOptions and am getting a similar error: Code:
Making dependency list for source file constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C SOURCE=constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C ; nvcc -Xptxas -dlcm=cg -std=c++11 -m64 -arch=sm_61 -Dlinux64 -DWM_DP -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wno-unused-parameter -Xcompiler -Wno-vla -Xcudafe "--diag_suppress=null_reference" -Xcudafe "--diag_suppress=subscript_out_of_range" -Xcudafe "--diag_suppress=extra_semicolon" -Xcudafe "--diag_suppress=partial_override" -Xcudafe "--diag_suppress=implicit_return_from_non_void_function" -Xcudafe "--diag_suppress=virtual_function_decl_hidden" -O3 -DNoRepository -I/home/mahmood/RapidCFD/RapidCFD-dev/src/finiteVolume/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/meshTools/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/sampling/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/thermophysicalModels/solidThermo/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/transportModels/compressible/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/thermophysicalModels/basic/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/thermophysicalModels/specie/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/turbulenceModels -IlnInclude -I. -I/home/mahmood/RapidCFD/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/mahmood/RapidCFD/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -x cu -D__HOST____DEVICE__='__host__ __device__' -o Make/linux64NvccDPOpt/temperatureLimitsConstraint.o -c $SOURCE constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(91): error: no operator "[]" matches these operands operand types are: Foam::labelgpuList [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(92): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(92): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(92): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(92): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(119): error: no operator "[]" matches these operands operand types are: Foam::fvPatchScalarField [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(120): error: no operator "[]" matches these operands operand types are: Foam::fvPatchScalarField [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(120): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.C(120): error: no operator "[]" matches these operands operand types are: Foam::scalargpuField [ Foam::label ] 9 errors detected in the compilation of "/tmp/tmpxft_00005470_00000000-7_temperatureLimitsConstraint.cpp1.ii". constraints/derived/temperatureLimitsConstraint/temperatureLimitsConstraint.dep:566: recipe for target 'Make/linux64NvccDPOpt/temperatureLimitsConstraint.o' failed make: *** [Make/linux64NvccDPOpt/temperatureLimitsConstraint.o] Error 2 Did you manage to solve the issue? Any comment on this is very much appreciated Regards and happy holidays, MJ |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPU acceleration in Ansys Fluent | flotus1 | Hardware | 63 | May 12, 2023 02:48 |
accelerate the performance of simpleFoam solver using paralution library on GPU | savee | OpenFOAM Running, Solving & CFD | 3 | January 7, 2020 00:37 |
Fatal overflow in linear solver | n.soumya | CFX | 2 | August 8, 2015 21:36 |
A turbulent test case for rhoCentralFoam | immortality | OpenFOAM Running, Solving & CFD | 13 | April 20, 2014 06:32 |
OpenFOAM 13 Intel quadcore parallel results | msrinath80 | OpenFOAM Running, Solving & CFD | 13 | February 5, 2008 05:26 |