Skip to content

It cost too much time to compile OpenLB

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics It cost too much time to compile OpenLB

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7028
    louise
    Participant

    All function implementations exist in the form of header files, whenever the cpp file in examples is modified, the whole project needs to be recompiled, which is very time consuming and cannot be compiled in parallel, has anyone changed the file compilation system to cmake form?

    #7029
    Adrian
    Keymaster

    Yes, the compilation times can definitely be a bit of a hassle at times. However, the main issue here is not Make vs. CMake but that OpenLB is primarily a template library which requires the template definition to be available in order for them to be instatiated.

    Nevertheless the next release will include optional CMake support in order to simplify usage of IDEs. For the compilation performance side of things it will include a new compilation mode that enables automatic generation of precompiled libraries to reduce the amount of code that has to be re-instantiated every time (this significantly improves the performance especially when targeting GPUs).

    What we commonly do in our production apps is to extract all commonly tweaked parameters into e.g. an XML interface so that the actual application doesn’t have to be recompiled for every change. This can also include selection of dynamics, boundary conditions and so on.

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