Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Release Binaries with openmp #962

Open
everythingfunctional opened this issue Sep 5, 2023 · 1 comment
Open

Build Release Binaries with openmp #962

everythingfunctional opened this issue Sep 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@everythingfunctional
Copy link
Member

Description

I don't know if there are downsides to doing so, but it would be 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.

@everythingfunctional everythingfunctional added the enhancement New feature or request label Sep 5, 2023
@perazz
Copy link
Contributor

perazz commented Sep 7, 2023

I think it's a good idea to ship pre-built binaries with openmp support for parallel builds and I hoped it would be relatively straightforward to implement.

  • We cannot use the openmp metapackage until fpm >=0.9.0 is used for bootstrapping
  • There is a problem with the Ubuntu build, which causes a segfault when built with openmp:

https://github.com/perazz/fpm/actions/runs/6106695766/job/16572241595

This will need more debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants