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

Parallel compilation of MultiWFN #3

Open
foxtran opened this issue Jan 4, 2024 · 1 comment
Open

Parallel compilation of MultiWFN #3

foxtran opened this issue Jan 4, 2024 · 1 comment

Comments

@foxtran
Copy link

foxtran commented Jan 4, 2024

libreta has long compilation time (~40 min), so it would be nice to have parallelization of compilation process.

The following line should be updated:

system "cmake", "--build", "build"

@kjelljorner
Copy link
Collaborator

Homebrew is supposed to handle that automatically based on the available CPUs on your system. What is the output log of a build with --verbose for you? On my system with 8 cores, I get -j8 for the MAKEFLAGS. I'm not aware of any way to do this is a more portable way, as it seems to be the standard way in homebrew-core for CMake builds.

...
==> ENV
HOMEBREW_CC: gcc-13
HOMEBREW_CXX: g++-13
MAKEFLAGS: -j8
...

To reduce time for the end user, it is probably better to build Homebrew "bottles" on GitHub Actions like here, but I don't have the bandwidth to set it up at the moment.

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

No branches or pull requests

2 participants