Problem with MPI execution an LBM algorithm
› Forums › OpenLB › General Topics › Problem with MPI execution an LBM algorithm
- This topic has 6 replies, 3 voices, and was last updated 13 years, 2 months ago by Padde86.
-
AuthorPosts
-
August 22, 2012 at 12:12 pm #1720Padde86Member
Hello everybody,rnrnI am using now OpenLB and I am complete new to C++ and the LBM so I got two questions:rnrn1. when i try to perfom a parallel execution with mpiexec -np 4 ./cylinder3d , the same programm is four times running serial on four different nodes wich is very unnecessary. How do i fix that? rnrn2. The same example cylinder3d: after serial execution the main file says i have 252nx nodes and 43 nodes for the y- and z- direction. Where do these values come from? when i look in “”blockGeometry.cpp”” i find a “”setNx()”” and “”getNx()”” but when i set Nx/Ny/Nz in the main programm I only move the domain and do not refine the solution. for a higher solution of 252x43x43 I get an error “”segmentation fault””rnrnI would be very thankfull for any help.rnrnbest rnpatrick
August 24, 2012 at 7:37 am #2071joMemberHi Patrick,rnrn1. Did you change the compiler flags in “”Makefile.inc””? There should be PARALLEL_MODE := MPI and the compiler changed to your parallel one.rn2. They come from the voxilization in “”stlreader.read(blockGeometry, 0u, 250);””. Here, 250 indicated the resolution in 0u, i.e. x-direction.rnrnJo
August 24, 2012 at 9:00 am #2072Padde86MemberHey Jo,rnrn1. Yeah I changed this flag before but still multiple execution and seriel compuatitonrn2. Oh man that is awkward… I overlooked this the whole time.rnrnThanks a lot rnPatrick
August 24, 2012 at 9:17 am #2073joMemberDear Patrick,rnrn1. Did you recompile the code by 1. “”make cleanbuild””, 2. “”make clean”” and 3. “”make””? Can you use mpirun instead mpiexec? Did you measure the execution times?rnrnJo
August 24, 2012 at 2:26 pm #2074Padde86MemberHallo Jo,rnrnyes I performed those three steps but still no correct execution. When I clean the build and subsequent compile the code new I am not even able to compile the cylinder3D.cpp since multiple MPI_Request errors appear.rnrnthanks for your helprnrnbest rnpatrick
August 28, 2012 at 5:01 am #2077mathiasKeymasterDear Patrick,rnrn Please download release 1 of 0.7 if you have not done yet. Further, please send the Makefile.inc you are using to bug@openlb.net . I am using gcc 4.4.3 and openmpi and just tested this example which was working fine.rnrnMathias
August 30, 2012 at 2:34 pm #2081Padde86MemberProblem solved:rnrnthe compiler for mpi execution had to be changed. Instead ofrnrnCXX = mpiCCrnit shopuld be changed tornCXX = mpic++rnrnthanks to everybody for the helprnrnbest patrick
-
AuthorPosts
- You must be logged in to reply to this topic.
