-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build and install process and instructions
- Loading branch information
1 parent
1baa415
commit 36ee4e7
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,11 @@ Once CMake and MPI are installed on your system, the rest should be straighforwa | |
```bash | ||
git clone [email protected]:matthewcarbone/hdspin.git | ||
cd hdspin | ||
cmake -S . -B build -DPRECISON=256 -DBUILD_TESTS=ON -DSMOKE=ON | ||
cmake -S . -B build -DPRECISON=256 -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_TESTS=ON -DSMOKE=ON | ||
cd build | ||
make -j8 | ||
sudo make -j8 install | ||
``` | ||
Sudo permissions are required to install to the directory `/usr/local/bin`, where the first two parts of the path are set by `DCMAKE_INSTALL_PREFIX`. You can of course choose whichever directory you want, but we recommend putting it in your path so you have easy access to the executable. | ||
|
||
Note that at compile time, there are three options for the user to set: | ||
* `-DPRECISON=<INT>` is the maximum number of spins you can use during the simulation. Should be a power of 2 (as recommended by the Arbitrary Precision library). Default is `256`. Note that this is the _maximum_ value you can use for `N_spins` in the simulation. | ||
|