Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapter does not use the same compiler as OpenFAST #2

Open
MakisH opened this issue May 8, 2024 · 0 comments
Open

Adapter does not use the same compiler as OpenFAST #2

MakisH opened this issue May 8, 2024 · 0 comments

Comments

@MakisH
Copy link
Member

MakisH commented May 8, 2024

I installed OpenFAST from Spack*, which gave me the following in its CMakeConfig:

# Compilers use by OpenFAST build
set(OpenFAST_CXX_COMPILER "/home/gc/spack/opt/spack/linux-ubuntu22.04-skylake/gcc-11.4.0/openmpi-5.0.3-ecb7njyuqk5aaoxtz3rbkmobkisc5hhp/bin/mpic++")
set(OpenFAST_C_COMPILER "/home/gc/spack/opt/spack/linux-ubuntu22.04-skylake/gcc-11.4.0/openmpi-5.0.3-ecb7njyuqk5aaoxtz3rbkmobkisc5hhp/bin/mpicc")
set(OpenFAST_Fortran_COMPILER "/home/gc/spack/opt/spack/linux-ubuntu22.04-skylake/gcc-11.4.0/openmpi-5.0.3-ecb7njyuqk5aaoxtz3rbkmobkisc5hhp/bin/mpif90")

However, building the adapter with the default CMake options leads to errors finding mpi.h in various dependency source files, since it uses the plain g++ instead of mpic++.

We need a way to get the right compiler that the OpenFAST header expects.

*with some issues and workarounds, I will elaborate on that later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant