Skip to content

Multiprocessing Compilation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6211
    andy
    Participant

    Hello,

    Quite new to openLB here, and was wondering if there is a
    tutorial on how to compile openLB with openMP.

    I’m able to compile the example tutorial files via the Makefile
    using g++/gcc & cygwin in serial mode, however using PARALLEL_MODE := MPI,
    the compilation is not sucessful, possibly due to the absence of the
    MPIFLAGS component.

    Any tips or suggestions on how to compile it would be appreciated.

    Kind Regards,
    Andy

    #6212
    Adrian
    Keymaster

    In order to compile in OpenMP mode you only need to set PARALLEL_MODE := OMP in config.mk.

    For MPI you need to set this variable to MPI (as you did) but also change the compiler to the desired MPI wrapper, e.g. mpic++.

    For usage on Windows we recommend the WSL instead of (frequently problematic) Cygwin.

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