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

Added compilation guide for Apple Silicon to README.md. #9

Merged
merged 2 commits into from
Aug 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ sets STO-3G and STO-6G are included for atoms up to N=8 (oxygen).

## Compilation

### Linux

Ensure you have all the required packages installed

```
Expand All @@ -32,7 +34,31 @@ cmake ../src
make -j9
```

To test the compilation, run
### For Apple Silicon

Install the compilation toolchain via [brew](https://brew.sh/).

```
brew install make gcc cmake cppunit
```

You also have to make sure that you have xCode installed

```
xcode-select --install
```

Packages are located in a different folder compared to linux

```
mkdir build && cd build
cmake -DCMAKE_CXX_FLAGS="-I/opt/homebrew/opt/cppunit/include" ../src
make -j9
```
## Testing

After compilation, you can test the `hfccc` executable by running the
test suite.

> **Note**: The testsuite contains a HF calculation of benzene using the
> STO-6g basis set. Since HFCXX is not optimized for speed, running the
Expand Down
Loading