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.
opened 07:35PM - 05 Sep 23 UTC
enhancement
### Description
I don't know if there are downsides to doing so, but it would b… e nice if the default fpm could do parallel builds, as it would save me some time in my CI.
### Possible Solution
Add the openmp meta package as a dependency in fpm's `fpm.toml` or modify the scripts compiling the binaries for the release to include the `-fopenmp` flag.
### Additional Information
I've got some projects that are big enough they would really benefit from parallel builds.
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