Update Building MFIX with CSG EB on Spock authored by Mark Meredith's avatar Mark Meredith
Spock compiler may required building MFIX and CSG-EB Conan package with different compilers.
# Background
# Check conan packages [optional]
The Cray compiler on Spock is based on Clang and uses the `hipcc` compiler wrapper.
# Problem
Building MFIX on Spock with the Cray compiler and CSG-EB support enabled has problems, because:
- Building with the compiler `CXX=hipcc` fails to build.
- Building with the compiler `CXX=$ROCM_PATH/llvm/bin/clang` builds successfully, but the resulting executable crashes.
# Procedure
The following steps are intended to work around these difficulties.
## Check conan packages [optional]
You can check which Conan packages are installed with the command, which looks something like:
......@@ -29,13 +43,13 @@ zlib/1.2.11
first to see which conan packages are already built (and cached) on your system
# Build Conan CSG-EB package
## 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]
## Check conan packages [optional]
You can check which Conan packages are installed with the command, which looks something like:
......@@ -63,7 +77,7 @@ zlib/1.2.11
```
# Build MFIX
## Build MFIX
```
❯ mkdir builddir; cd builddir
......
......