Skip to content

Number of threads in MPI paralellization

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Number of threads in MPI paralellization

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1713
    bitelaum
    Member

    Hi,rnrnI was trying to run some of the examples of OpenLB, and found that I only have 1 thread per program.rnrnWhen I try to run, for example cylinder3d, I get:rnrn

    Code:
    bitz@bitz-desk:~/Documents/IC/Pacotes/olb-0.7r1/examples/cylinder3d$ ./cylinder3drn[MpiManager] sucessfully initialized, numThreads=1

    rnrnI tried to pass the number of threads as an argument too like:rnrn

    Code:
    bitz@bitz-desk:~/Documents/IC/Pacotes/olb-0.7r1/examples/cylinder3d$ ./cylinder3d 4rn[MpiManager] sucessfully initialized, numThreads=1rn

    rnrnbut I was unsuccessful.rnrnMy processor has 4 cores, how can I run a program with 4 threads for example.rnrnThanks,rnHenrique.rn

    #2055
    kulka
    Member

    To use 4 cores you should run mpirun(or mpiexec) -np=4 ./cylinder3d

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.