| ... | ... | @@ -139,7 +139,7 @@ Usually dependencies need to be built in the system (so that they are available |
|
|
|
cd $SERGHEIPATH/src
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Open the `Makefile`. This is a script which controls how SERGHEI is compiled. Note that there are some definitions early on. In particular `KOKKOS_PATH` and `KOKKOS_SRC_PATH` are defined as a function of `HOME`. Note that the `Makefile` assumes that `KOKKOS_PATH` will be in `HOME` path. `HOME` is an environment variable which contain the path to your home directory. Exit the file and check what your HOME environment variable contains.
|
|
|
|
2. Open the `Makefile`. This is a script which controls how SERGHEI is compiled. Note that there are some definitions early on. In particular `KOKKOS_PATH` and `KOKKOS_SRC_PATH` are defined as a function of `SERGHEIPATH`. Note that the `Makefile` assumes that `KOKKOS_PATH` will be in the `SERGHEIPATH` directory.
|
|
|
|
3. Now we will use `make` to compile and build. Running `make` attempts to read the `Makefile`, which you can see exists in this directory. If you try to run `make` in a different directory which does not contain a `Makefile` you will get an error. `make` support parallel threads, so that the compilation is faster. For example
|
|
|
|
|
|
|
|
```bash
|
| ... | ... | |
| ... | ... | |