Parallel fpm builds

Do the official binary releases of FPM have parallelism enabled? I was browsing the source when I saw this:

@note If compiled with OpenMP, targets will be build in parallel where possible.

I tried downloading the latest linux release, but it seems to only build on one thread: https://github.com/fortran-lang/fpm/releases/download/v0.12.0/fpm-0.12.0-linux-x86_64-gcc-12

It works and it works great! At least, it does when I build fpm locally with fpm build --profile release --flag “-fopenmp”

2 Likes

I asked about doing this a while ago, but I don’t know that anybody’s done anything to do it yet.

3 Likes

Thanks! I should’ve searched the issues better

For what it’s worth, I’m also building fpm from source on Ubuntu – Ubuntu 22.04.5 LTS in WSL. I haven’t seen any issues with segfaults. Maybe that issue is fixed or maybe my testing just wasn’t thorough enough