Extend microarchitectures.json: Add cflags/cxxflags/fflags.#3
Extend microarchitectures.json: Add cflags/cxxflags/fflags.#3t-karatsu wants to merge 2 commits intoarchspec:masterfrom
Conversation
|
@alalazo @boegel: see if you agree with this. I suggested this to the Fujitsu folks, as the fujitau compilers need different flags for the C/C++, and Fortran compilers. This is an extension of the existing schema; the idea is that if |
|
I'm OK with this, but can you clarify the It seems to be the latter (otherwise |
This one. Better way to put it: for each flag in |
|
@tgamblin OK, but then why are the |
|
@boegel: good question. I think @t-karatsu might've interpreted this as "use the combination of both flags and cflags" instead of what I was thinking. Which one do you like better? I think it's less confusing to prefer the value of |
|
@tgamblin With an entry like that it's clear of course, but if both |
|
@tgamblin From Spack's perspective this would be completely fine since in our current model From the perspective of a generic library (and in view of future enhancements to the compiler model in Spack) I wonder if the structure should be more explicitly calling out the languages for which the flags are for. For instance: {
"version": "4.1.0:",
"flags": {
"default": "-Knolargepage -Nclang -mcpu=thunderx2t99",
"fortran": "-Knolargepage -KGENERIC_CPU -KNOSVE"
}
}so that we could easily extend it to other compiled languages like This also poses a question on the API of the Python library: Currently
Do you know of any other compiler using different uarch flags depending on the language that is used? Because if we are quite confident there is none we can also try to figure out if it is feasible to give different names to the two Fujitsu compilers. |
|
@tgamblin @alalazo @boegel |
|
Hi @t-karatsu ! A couple of comments:
|
|
@alalazo
We don't know any compiler that needs different flags for each language, except Fujitsu compiler. This is just one idea...
In a way close to '1.', How about choosing the compiler to use for each language?
In conjunction with this idea, we may be able to extract the necessary |
@tgamblin
Fujitsu compiler has different optimization flags for each languages, so I add schema for flags for each languages.