Skip to content
Snippets Groups Projects
Commit 9f9b0fb5 authored by 数学の武士's avatar 数学の武士
Browse files

Add Cmake instructions

parent b0f5e2b8
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,34 @@ Option `COMPILER` enables set of compiler-specific options. Most common are `gnu
./sfx.exe
```
## Building with CMake
Currently there is an implementation of Cmake-based toolchain which allows to build the model quicker and with less hustle (minimum required cmake version is 3.19). Clone the project and load appropriate modules. Create a build directory outside of cloned projects:
```bash
mkdir build && cd build
```
The code supports fluxes computations on both CPU and GPU and the CPU implementation has two versions: Fortran and C++ implementation.
1. Building the Fortran CPU version:
```bash
cmake ..
```
2. Building the C++ CPU version:
```bash
cmake -DUSE_CXX=ON ..
```
3. Building the C++ GPU version:
```bash
cmake -DINCLUDE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=<N> ..
```
where `N` is the architecture to generate device code for.
## Running test cases
We have prepared several dataseta to make the test calculations. Data is prepared on the basis of measurements.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment