A simple script to build ReSolve with LLVM/clang++ as the host compiler on Ascent
```
#!/bin/bash -e
module reset
module load cmake
module load llvm/12.0.0
module load cuda/11.4.2
module load suite-sparse/5.10.1
cmake
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_INSTALL_PREFIX=../resolve_install
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_CUDA_ARCHITECTURES="70"
-DCMAKE_CUDA_COMPILER=nvcc
-DCMAKE_CUDA_HOST_COMPILER=clang++
-DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler
../resolve
make VERBOSE=1 -j
make install
make test```
It is possible to modify the build system to build with LLVM/clang++ (instead of GCC). I started implementing this in the nicholson/ascent-llvm branch. See the main commit to see the changes. Moving forward, we have to think about how we want to organize the build system to support different platforms and stacks.
In the modified build system, the address sanitizer can be activated by setting RESOLVE_USE_ASAN=ON. See https://code.ornl.gov/ecpcitest/exasgd/resolve/-/blob/nicholson/ascent-llvm/buildsystem/ascent-llvm-cache.cmake#L29.
CC @nkoukpaizan
A simple script to build ReSolve with LLVM/clang++ as the host compiler on Ascent
``` #!/bin/bash -emodule reset
module load cmake
module load llvm/12.0.0
module load cuda/11.4.2
module load suite-sparse/5.10.1
cmake
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_INSTALL_PREFIX=../resolve_install
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_CUDA_ARCHITECTURES="70"
-DCMAKE_CUDA_COMPILER=nvcc
-DCMAKE_CUDA_HOST_COMPILER=clang++
-DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler
../resolve
make VERBOSE=1 -j
make install
make test```
It is possible to modify the build system to build with LLVM/clang++ (instead of GCC). I started implementing this in the nicholson/ascent-llvm branch. See the main commit to see the changes. Moving forward, we have to think about how we want to organize the build system to support different platforms and stacks.
In the modified build system, the address sanitizer can be activated by setting
RESOLVE_USE_ASAN=ON. See https://code.ornl.gov/ecpcitest/exasgd/resolve/-/blob/nicholson/ascent-llvm/buildsystem/ascent-llvm-cache.cmake#L29.CC @nkoukpaizan