-
Notifications
You must be signed in to change notification settings - Fork 212
Implementing a new LLVM based toolchain #4914
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
base: develop
Are you sure you want to change the base?
Conversation
Apparently some tests were failing because |
d6fe4f9
to
bb62f27
Compare
|
||
|
||
class LLVM(Compiler): | ||
"""Compiler toolchain with Clang and GFortran compilers.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"GFortran" was copy/pasted from somewhere else?
This one should be Clang + flang, no?
|
||
if unsupported_fortran_flags is not None: | ||
self.log.debug( | ||
f"Ensuring usupported Fortran flags `{unsupported_fortran_flags}` are removed from variables" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"unsupported"
|
||
|
||
class LFoss(Lompi, FlexiBLAS, ScaLAPACK, Fftw): | ||
"""Compiler toolchain with GCC, OpenMPI, FlexiBLAS, ScaLAPACK and FFTW.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"GCC" -> "LLVM", right?
|
||
|
||
class Lompi(LLVMtc, OpenMPI): | ||
"""Compiler toolchain with GCC and OpenMPI.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GCC -> LLVM?
Compilers
llvm.py
compiler taken from the originalclang.py
and unifying it withflang
flang
compiler options based on the passed LLVM version which will be excluded, from the compiler flagsToolchains
LLVMtc
: Similar toGCC
uses botGCCcore
andSYSTEM
as a subtoolchainLfbf
equivalent ofGfbf
Lompi
equivalent ofGompi
LFoss
equivalent ofFoss
OpenBLAS
child class as in Foss it is used only for toolchains older than2021.0
TODO
clang.py
compilerlibstdc++
and possiblylibc++