|
|
Spock compiler may required building MFIX and CSG-EB Conan package with different compilers.
|
|
|
|
|
|
# Check conan packages [optional]
|
|
|
|
|
|
You can check which Conan packages are installed with the command, which looks something like:
|
|
|
|
|
|
```
|
|
|
❯ conan search
|
|
|
Existing package recipes:
|
|
|
|
|
|
b2/4.5.0
|
|
|
boost/1.75.0
|
|
|
bzip2/1.0.8
|
|
|
catch2/2.13.7
|
|
|
cgal/5.2.1
|
|
|
eigen/3.3.9
|
|
|
gmp/6.2.1
|
|
|
libbacktrace/cci.20210118
|
|
|
libiconv/1.16
|
|
|
m4/1.4.18
|
|
|
meson/0.60.0
|
|
|
mpfr/4.1.0
|
|
|
ninja/1.10.2
|
|
|
pkgconf/1.7.4
|
|
|
taocpp-pegtl/3.2.1
|
|
|
zlib/1.2.11
|
|
|
```
|
|
|
|
|
|
|
|
|
first to see which conan packages are already built (and cached) on your system
|
|
|
|
|
|
# Build Conan CSG-EB package
|
|
|
|
|
|
```
|
|
|
cd subprojects/csg-eb
|
|
|
env CC=$ROCM_PATH/llvm/bin/clang CXX=$ROCM_PATH/llvm/bin/clang++ conan create .
|
|
|
```
|
|
|
# Check conan packages [optional]
|
|
|
|
|
|
You can check which Conan packages are installed with the command, which looks something like:
|
|
|
|
|
|
```
|
|
|
❯ conan search
|
|
|
Existing package recipes:
|
|
|
|
|
|
b2/4.5.0
|
|
|
boost/1.75.0
|
|
|
bzip2/1.0.8
|
|
|
catch2/2.13.7
|
|
|
cgal/5.2.1
|
|
|
csg-eb/46cbe771bad57377342e65787280a9430bd9ac9e
|
|
|
csg-eb/d0139be5aa26d08455125c7eb3e8eac4c9cf6742
|
|
|
eigen/3.3.9
|
|
|
gmp/6.2.1
|
|
|
libbacktrace/cci.20210118
|
|
|
libiconv/1.16
|
|
|
m4/1.4.18
|
|
|
meson/0.60.0
|
|
|
mpfr/4.1.0
|
|
|
ninja/1.10.2
|
|
|
pkgconf/1.7.4
|
|
|
taocpp-pegtl/3.2.1
|
|
|
zlib/1.2.11
|
|
|
```
|
|
|
|
|
|
|
|
|
# Build MFIX
|
|
|
|
|
|
```
|
|
|
env CC=$(which hipcc) CXX=$(which hipcc) cmake -S. -Bbuild -DMFIX_CSG=1
|
|
|
cmake --build build
|
|
|
```
|
|
|
|
|
|
Building MFIX should use the (already cached) conan packages. |
|
|
\ No newline at end of file |