Skip to content

RapidCFD failed to built with OpenMPI-4.1.8, ucx-1.18.1 , cuda-11.0 and gcc-8.2.0 #120

@Dcn303

Description

@Dcn303

Allwmake.txt

Hi everyone,
As the title says my RapidCFD have failed to build with OpenMPI-4.1.8, ucx-1.18.1 , cuda-11.0 and gcc-8.2.0
i have attached my Allwmake logs files and also given below the part where error occured
I did not face building issus when i used openmpi-3.0.0 , cuda 10.0 and gcc-4.8.5

/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/OpenFOAM/lnInclude/typeInfo.H:91:1: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=] nvcc -Xptxas -dlcm=cg -std=c++14 -m64 -arch=sm_70 -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 -IincompressibleTwoPhaseInteractingMixture -ImixtureViscosityModels/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/finiteVolume/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/meshTools/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/sampling/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/fvOptions/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/transportModels -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/transportModels/twoPhaseMixture/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/transportModels/incompressible/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/transportModels/interfaceProperties/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/TurbulenceModels/compressible/lnInclude -I./relativeVelocityModels/lnInclude -IlnInclude -I. -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/OpenFOAM/lnInclude -I/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/src/OSspecific/POSIX/lnInclude -Xcompiler -fPIC -cudart shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64NvccDPOpt/incompressibleTwoPhaseInteractingMixture.o Make/linux64NvccDPOpt/compressibleTurbulenceModels.o Make/linux64NvccDPOpt/driftFluxFoam.o -L/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/platforms/linux64NvccDPOpt/lib \ -ldriftFluxTransportModels -ldriftFluxRelativeVelocityModels -lfiniteVolume -lmeshTools -lsampling -lfvOptions -lincompressibleTransportModels -lturbulenceModels -lcompressibleTurbulenceModels -lOpenFOAM -ldl -lm -o /home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/platforms/linux64NvccDPOpt/bin/driftFluxFoam /home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/platforms/linux64NvccDPOpt/lib/libOpenFOAM.so: undefined reference to void Foam::AINVPreconditioner::preconditionImpl(Foam::gpuField&, Foam::gpuField const&, unsigned char) const'
/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/platforms/linux64NvccDPOpt/lib/libOpenFOAM.so: undefined reference to void Foam::AINVPreconditioner::preconditionImpl<true>(Foam::gpuField<double>&, Foam::gpuField<double> const&, unsigned char) const' collect2: error: ld returned 1 exit status make: *** [/home/urban/DL-workspace/RapidCFD/RapidCFD_with_OpenMPI-4.1.8/RapidCFD-dev/platforms/linux64NvccDPOpt/bin/driftFluxFoam] Error 1

Allwmake.txt
In earlier compilation libOpenFOAM.so was created sucessfully but this time it fails to create as it is not able to detect
Foam::AINVPreconditioner.
Its strange, this issue occurs once the cuda ,and gcc version are changed to 11.0 and 8.2.0
Have anyone face such issue , if so how have you solve??

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions