CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Error when running OpenFOAM parallel on WSL

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2021, 03:10
Question Error when running OpenFOAM parallel on WSL
  #1
New Member
 
Youjiang Wang
Join Date: Apr 2015
Location: Hamburg
Posts: 22
Rep Power: 9
wyj216 is on a distinguished road
I installed OpenSUSE on Windows 10 WSL. The OpenFOAM version is 2012. The openmpi works fine with the test
Code:
mpirun -np 2 echo "test"
OpenFOAM works fine when running serial (I use simpleFoam), but when I tried to run it parallel with the either
Code:
runParallel simpleFoam
or
Code:
mpirun -np 4 simpleFoam -parallel
the following errors occur

Code:
[T20404-LR004:11920:0:11920] Caught signal 11 (Segmentation fault: address not mapped to object at address 0xfffffffffffffff0)
==== backtrace ====
    0  /usr/lib64/libucs.so.0(+0x1b300) [0x7f4a7173b300]
    1  /usr/lib64/libucs.so.0(+0x1b4b2) [0x7f4a7173b4b2]
    2  /usr/lib64/libfabric.so.1(+0x24a0e) [0x7f4a733d4a0e]
    3  /usr/lib64/libfabric.so.1(+0x194c0) [0x7f4a733c94c0]
    4  /usr/lib64/libfabric.so.1(fi_getinfo+0x47d) [0x7f4a733c9edd]
    5  /usr/lib64/libfabric.so.1(fi_getinfo+0x4d) [0x7f4a733ced1d]
    6  /usr/lib64/mpi/gcc/openmpi/lib64/openmpi/mca_mtl_ofi.so(+0x3ac5) [0x7f4a710e3ac5]
    7  /usr/lib64/mpi/gcc/openmpi/lib64/libmpi.so.12(ompi_mtl_base_select+0xa0) [0x7f4a7f3feed0]
    8  /usr/lib64/mpi/gcc/openmpi/lib64/openmpi/mca_pml_cm.so(+0x3d3a) [0x7f4a72263d3a]
    9  /usr/lib64/mpi/gcc/openmpi/lib64/libmpi.so.12(mca_pml_base_select+0x5a1) [0x7f4a7f406e41]
   10  /usr/lib64/mpi/gcc/openmpi/lib64/libmpi.so.12(ompi_mpi_init+0x5a0) [0x7f4a7f3b9520]
   11  /usr/lib64/mpi/gcc/openmpi/lib64/libmpi.so.12(PMPI_Init_thread+0x118) [0x7f4a7f3d7d48]
   12  /opt/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/lib/sys-openmpi/libPstream.so(_ZN4Foam8UPstream4initERiRPPcb+0x84) [0x7f4a81d0e734]
   13  /opt/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam7argListC1ERiRPPcbbb+0x975) [0x7f4a833a59d5]
   14  simpleFoam() [0x424f54]
   15  /lib64/libc.so.6(__libc_start_main+0xea) [0x7f4a81f40f8a]
   16  simpleFoam() [0x429b6a]
--------------------------------------------------------------------------
mpirun noticed that process rank 0 with PID 11920 on node T20404-LR004 exited on signal 11 (Segmentation fault).
--------------------------------------------------------------------------
I tried without mpirun, i.e. directly with the following command
Code:
simpleFoam -parallel
The same error and same backtrace was reported.

I checked some relative threads but did not find the solution. Does anyone have idea to solve it? Thanks in advance.

Last edited by wyj216; July 7, 2021 at 02:12.
wyj216 is offline   Reply With Quote

Old   July 7, 2021, 03:10
Default
  #2
New Member
 
Youjiang Wang
Join Date: Apr 2015
Location: Hamburg
Posts: 22
Rep Power: 9
wyj216 is on a distinguished road
I just solved it by upgrading openSUSE from 15.1 to 15.3. If anyone faces the same problem, here is the link to upgrade openSUSE
https://www.cyberciti.biz/faq/how-to...using-the-cli/

And it worked in windowns WSL.
wyj216 is offline   Reply With Quote

Reply

Tags
parallel, windows, wsl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Running OpenFOAM in parallel in WSL with Ubuntu bash FlyFox OpenFOAM Running, Solving & CFD 7 March 17, 2020 10:08
Large test case for running OpenFoam in parallel fhy OpenFOAM Running, Solving & CFD 23 April 6, 2019 09:55
looking for instructions on using a cluster and running openFoam in parallel a.Asadi OpenFOAM Running, Solving & CFD 3 December 14, 2015 03:38
Running Error using Compressible OpenFoam Parallel mode dhendria OpenFOAM Running, Solving & CFD 0 February 13, 2014 20:53


All times are GMT -4. The time now is 02:45.