-
Notifications
You must be signed in to change notification settings - Fork 13
nix build #82
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
base: main
Are you sure you want to change the base?
Conversation
gknapp1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think that having the nix-related files in a separate directory, similar to the ExaCA repo, is preferred.
- The AMB2018-02-B tutorial is good for a quick test
I wasn't able to build this following the build instructions in NIX.md (see error message in review comment). @wd15 can you provide guidance on how to troubleshoot?
|
This only currently works with |
|
Furthermore, I can cache the binaries for x86-64 once we have resolved any issues. It's free for open source projects. That should make the build very fast. |
That's good news, the OpenFOAM nix build is quite slow. I'm building it now, so once that finishes and I can test, I'll re-review.
I don't know of any users typically using anything besides |
|
|
||
| See the [installation instructions](https://ornl.github.io/AdditiveFOAM/docs/installation/#installation) in the [documentation](https://ornl.github.io/AdditiveFOAM/) for other options for building `AdditiveFOAM`. | ||
|
|
||
| An alternative installation mechanism is using Nix. See |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colemanjs would you prefer this be in the docs instead?
|
@gknapp1: just a note that I added cached the AdditiveFOAM binary dependencies to Cachix so the nix build should go much faster. To test it you would need to remove all the dependencies from your current Nix installation or use a different Nix store. Just using a Nix installation on a different machine is probably easier. |
gknapp1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wd15 thanks for the added documentation and caching implementation. This works for me and the install only took a little over a minute for the cache download (~1.6 GB).
For testing this development:
nix develop github:wd15/AdditiveFOAM/nix?dir=envs/nix --accept-flake-config
Adapts a Nix build for OpenFOAM 12 to OpenFOAM 10 and subsequent build of AdditiveFOAM to work with the existing build of ExaCA.
envs/nixin a similar manner to the ExaCA Nix build. Let me know your preference.Edit:
nix develop github:wd15/AdditiveFOAM/nix. Installation instructions will only work after the merge.Edit again:
envs/nixso usenix develop github:wd15/AdditiveFOAM/nix?dir=envs/nixto build