@@ -11,14 +11,22 @@ It can be used within code generators or libraries. For more information see
11
11
12
12
## Install
13
13
14
- ### Prerequisites
14
+ ### Prerequisites
15
+ First following items should be installed:
15
16
* CMake
16
17
* C++ compiler (GCC, ICC, or CLang)
17
- * METIS and OpenMP (optional) dependency for running the demo efficiently
18
- and are handled by the cmake.
18
+ * METIS (optional) dependency for running the demo efficiently
19
+ and is handled by the cmake. If you have installed the package using
20
+ a packet manager (e.g., apt of homebrew), CMake should be able to detect it.
21
+ Otherwise, it installs METIS from source internally.
22
+ * OpenMP (optional) for running some parts of the code in parallel. If you
23
+ use GCC/ICC then OpenMP should be supported natively. If you use Apple CLang,
24
+ you probably need to install OpenMP using ` homebrew install libomp ` . You can
25
+ * also install LLVM usng ` brew install llvm ` which support OpenMP natively.
19
26
20
- ### Linux
21
- Then install LBC by following commands:
27
+
28
+ ### Build
29
+ Then build LBC, using the following:
22
30
23
31
``` bash
24
32
mkdir build
28
36
```
29
37
30
38
31
- ### Mac
32
- Setting the C and CXX compilers to GCC and then follow the Linux
33
- instructions. For example:
34
- ` -DCMAKE_CXX_COMPILER =/usr/local/Cellar/gcc\@9/9.3.0_2/bin/g++ -9 -DCMAKE_C_COMPILER=/usr/local/Cellar/gcc\@9/9.3.0_2/bin/gcc-9 `
39
+ You can always set ` -DCMAKE_CXX_COMPILER= ` and ` -DCMAKE_C_COMPILER= ` to use
40
+ a different compiler. For example:
41
+ `cmake -DCMAKE_CXX_COMPILER=/usr/local/Cellar/gcc \@ 9/9.3.0_2/bin/g++-9
42
+ -DCMAKE_C_COMPILER =/usr/local/Cellar/gcc\@ 9/9.3.0_2/bin/gcc -9 .. `
35
43
36
- Alternatively, you can use CLang using ` brew install llvm ` .
37
- The default clang on Mac might not work so make sure to set it llvm clang:
38
- ` -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ `
39
44
40
45
## Example
41
46
The example directory shows how to call LBC API and iterate over
0 commit comments