|
[Sponsors] |
August 31, 2022, 12:23 |
Parallel build of OF22.06
|
#1 |
New Member
Join Date: Jun 2022
Posts: 19
Rep Power: 4 |
Hi,
I am using WSL with Ubuntu 20.04 . I am trying build OF22.06 in parallel with 12 cores. I have allocated 20 GB of RAM to WSL and 10GB for SWAP. My machine has 24 cores and 32 GB of RAM. I am using GCC 9.4.0. I am compiling OpenFOAM as: Code:
./Allwmake -j 12 -q -l Code:
/home/tomJ/OpenFOAM/ThirdParty-v2206/sources/adios/ADIOS2-2.7.1/testing/adios2/engine/bp/TestBPWriteMultiblockRead.cpp: In member function ‘virtual void BPWriteMultiblockReadTest_ADIOS2BPWriteRead1D8ZeroBlock_Test::TestBody()’: /home/tomJ/OpenFOAM/ThirdParty-v2206/sources/adios/ADIOS2-2.7.1/testing/adios2/engine/bp/TestBPWriteMultiblockRead.cpp:1364:1: internal compiler error: Segmentation fault 1364 | } | ^ 0x7f80c5e5108f ??? /build/glibc-SzIz7B/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x7f80c5e32082 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions. make[2]: *** [testing/adios2/engine/bp/CMakeFiles/Test.Engine.BP.WriteMultiblockRead.Serial.dir/build.make:63: testing/adios2/engine/bp/CMakeFiles/Test.Engine.BP.WriteMultiblockRead.Serial.dir/TestBPWriteMultiblockRead.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:3886: testing/adios2/engine/bp/CMakeFiles/Test.Engine.BP.WriteMultiblockRead.Serial.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Code:
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -DNDEBUG -DCGAL_INEXACT -DCGAL_HEADER_ONLY -I/home/tomJ/OpenFOAM/ThirdParty-v2206/platforms/linux64Gcc/boost_1_74_0/include -I/home/tomJ/OpenFOAM/ThirdParty-v2206/platforms/linux64Gcc/CGAL-4.14.3/include -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds -Wno-deprecated-declarations -fpermissive -I../conformalVoronoiMesh/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/fileFormats/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/surfMesh/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/meshTools/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/dynamicMesh/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/parallel/decompose/decompositionMethods/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/mesh/snappyHexMesh/lnInclude -IvectorTools -iquote. -IlnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/tomJ/OpenFOAM/OpenFOAM-v2206/build/linux64GccDPInt32Debug/applications/utilities/mesh/generation/foamyMesh/foamyHexMesh/foamyHexMesh.o -L/home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/lib \ -L/home/tomJ/OpenFOAM/ThirdParty-v2206/platforms/linux64Gcc/boost_1_74_0/lib64 -lmpfr -lgmp -lconformalVoronoiMesh -lfileFormats -lsurfMesh -lmeshTools -ldecompositionMethods -ldecompose -L/home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/lib/dummy -lkahipDecomp -lmetisDecomp -lptscotchDecomp -lscotchDecomp -ldynamicMesh -lOpenFOAM -ldl \ -ggdb3 -DFULLDEBUG -lm -o /home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/bin/foamyHexMesh Finish foamyMesh Code:
collect2: fatal error: ld terminated with signal 11 [Segmentation fault] compilation terminated. make[1]: *** [/home/tomJ/OpenFOAM/OpenFOAM-v2206/wmake/makefiles/general:150: /home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/bin/computeMoments] Error 1 make[1]: Target 'all' not remade because of errors. make: *** [/home/tomJ/OpenFOAM/OpenFOAM-v2206/wmake/makefiles/apps:28: computeMoments] Error 2 g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/fvOptions/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/sampling/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/meshTools/lnInclude -ImomentGenerationModels/lnInclude -I../../../src/mappedList -I../../../src/mappedPtrList -iquote. -IlnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/tomJ/OpenFOAM/OpenFOAM-v2206/build/linux64GccDPInt32Debug/modules/OpenQBMM/applications/utilities/generateMoments/generateMoments.o -L/home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/lib \ -lfiniteVolume -lmeshTools -lfvOptions -lsampling -L/home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/lib -lmomentGenerationModels -lOpenFOAM -ldl \ -ggdb3 -DFULLDEBUG -lm -o /home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/bin/generateMoments make: Target 'application' not remade because of errors. wmake populationBalance Code:
/usr/bin/ld: /home/tomJ/OpenFOAM/OpenFOAM-v2206/build/linux64GccDPInt32Debug/modules/OpenQBMM/applications/solvers/velocityDistributionTransport/diluteVdfTransportFoam/diluteVdfTransportFoam.o: unsupported relocation type 0x70 /usr/bin/ld: /home/tomJ/OpenFOAM/OpenFOAM-v2206/build/linux64GccDPInt32Debug/modules/OpenQBMM/applications/solvers/velocityDistributionTransport/diluteVdfTransportFoam/diluteVdfTransportFoam.o: unrecognized relocation type 0x70 in section `.debug_info' /usr/bin/ld: is this version of the linker - (GNU Binutils for Ubuntu) 2.34 - out of date ? /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make: *** [/home/tomJ/OpenFOAM/OpenFOAM-v2206/wmake/makefiles/general:150: /home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/bin/diluteVdfTransportFoam] Error 1 wmake multiphase Finally, I did it for a 4th time and now I only get the error in: Code:
wmake diluteVdfTransportFoam g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/transportModels/compressible/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/thermophysicalModels/basic/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/transportModels/incompressible/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/TurbulenceModels/compressible/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/TurbulenceModels/phaseCompressible/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/meshTools/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/sampling/lnInclude -I../../../../src/mappedList -I../../../../src/mappedPtrList -I../../../../src/quadratureMethods/momentSets/lnInclude -I../../../../src/quadratureMethods/momentInversion/lnInclude -I../../../../src/quadratureMethods/quadratureNode/lnInclude -I../../../../src/quadratureMethods/moments -I../../../../src/quadratureMethods/fieldMomentInversion/lnInclude -I../../../../src/quadratureMethods/quadratureApproximations/lnInclude -I../../../../src/quadratureMethods/momentAdvection/lnInclude -I../../../../src/quadratureMethods/populationBalanceModels/lnInclude -I../phaseModel/lnInclude -I../interfacialModels/lnInclude -I../phaseCompressibleTurbulenceModels -I../../../utilities/phaseMeanVelocityForce/lnInclude -iquote. -IlnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/home/tomJ/OpenFOAM/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/tomJ/OpenFOAM/OpenFOAM-v2206/build/linux64GccDPInt32Debug/modules/OpenQBMM/applications/solvers/velocityDistributionTransport/diluteVdfTransportFoam/diluteVdfTransportFoam.o -L/home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/lib \ -lcompressibleTransportModels -lfluidThermophysicalModels -lspecie -lturbulenceModels -lcompressibleTurbulenceModels -lthermoTools -lincompressibleTransportModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/lib -lquadratureNode -lmomentSets -lmomentInversion -lfieldMomentInversion -lquadratureApproximation -lmomentAdvection -lpopulationBalance -lpbePhaseModels -lpbeInterfacialModels -lpbeTurbulenceModels -lfvOptionPhaseMeanVelocityForce -lOpenFOAM -ldl \ -ggdb3 -DFULLDEBUG -lm -o /home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/bin/diluteVdfTransportFoam /usr/bin/ld: /home/tomJ/OpenFOAM/OpenFOAM-v2206/build/linux64GccDPInt32Debug/modules/OpenQBMM/applications/solvers/velocityDistributionTransport/diluteVdfTransportFoam/diluteVdfTransportFoam.o: unsupported relocation type 0x70 /usr/bin/ld: /home/tomJ/OpenFOAM/OpenFOAM-v2206/build/linux64GccDPInt32Debug/modules/OpenQBMM/applications/solvers/velocityDistributionTransport/diluteVdfTransportFoam/diluteVdfTransportFoam.o: unrecognized relocation type 0x70 in section `.debug_info' /usr/bin/ld: is this version of the linker - (GNU Binutils for Ubuntu) 2.34 - out of date ? /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make: *** [/home/tomJ/OpenFOAM/OpenFOAM-v2206/wmake/makefiles/general:150: /home/tomJ/OpenFOAM/OpenFOAM-v2206/platforms/linux64GccDPInt32Debug/bin/diluteVdfTransportFoam] Error 1 wmake multiphase I have ran 2 or 3 tutorials and OF seams to work. But is this normal? To need 4 passes to compile everything? Or did I do something wrong? |
|
September 7, 2022, 09:28 |
|
#2 |
New Member
Join Date: Mar 2010
Posts: 11
Rep Power: 16 |
I don't think this is how to run in parallel. You need GCC and openmpi to be installed. I do the following to run the icoFoam example in parallel
First copy the file “decomposeParDict” from the case “/tutorials/multiphase/interFoam/laminar/damBreak/system” to the directory “system” located inside the “cavity” case to be able to decompose the domain to the required number of processors. Now go into the file “system/decomposeParDict” then modify the “numberOfSubdomains” to the number of processes you plan to run: ************************** numberOfSubdomains 64; method simple; simpleCoeffs { n ( 4 4 4 ); delta 0.001; } ************************* % blockMesh ( To generate the mesh) % decomposePar ( To divide the mesh points on the number processors ) % mpirun -np 4 icoFoam -parallel > log & ################# Find information at https://www.openfoam.com/documentati...ns-in-parallel Best |
|
September 8, 2022, 04:20 |
|
#3 |
New Member
Join Date: Mar 2010
Posts: 11
Rep Power: 16 |
To build openfoam in parallel you just need to load the openmpi libaray on the system and then run "./Allwmake". best
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] OpenFoam in parallel with sHM and sFE | pradyumnsingh | OpenFOAM Meshing & Mesh Conversion | 4 | October 26, 2018 17:25 |
Error running openfoam in parallel | fede32 | OpenFOAM Programming & Development | 5 | October 4, 2018 17:38 |
Explicitly filtered LES | saeedi | Main CFD Forum | 16 | October 14, 2015 12:58 |
Running parallel case after parallel meshing with snappyHexMesh? | Adam Persson | OpenFOAM Running, Solving & CFD | 0 | August 31, 2015 23:04 |
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 | Amitava Majumdar | Main CFD Forum | 0 | January 5, 1999 13:00 |