Well, in the case of NAMD, this flag needs to be set before the
configure step, and there is no preconfigopts. Moreover, the configure
step for NAMD is no a single ./configure, but rather multiple run_cmd.
It wouldn't be clear which run_cmd a preconfigopts would affect even if
there was one.
Maxime
On 17-04-18 07:35, Kenneth Hoste wrote:
On 12/04/2017 20:40, Maxime Boissonneault wrote:
That's interesting, but I'm thinking a more generic answer
(extra_args flag) might be useful. Surely, NAMD is not the only
software which might require that kind of special flags.
We don't have a toolchain option to specify additional compiler flags
(yet), but how about modifying $CXXFLAGS before 'make' is run by
EasyBuild with:
prebuildopts = 'export CXXFLAGS="$CXXFLAGS --std=c++11 -ip" && '
regards,
Kenneth
On 17-04-12 14:21, Åke Sandgren wrote:
I have a new namd easyblock pending that fixes this already.
Just need a fix in framework since it's doing things wrong in my
opinion.
On 04/12/2017 08:12 PM, Maxime Boissonneault wrote:
Hi,
For the latest version of NAMD, we need to add "--std=c++11 -ip" to
the
CXXFLAGS when compiling with Intel compilers.
How would we do that from the EasyConfig file ?
For now, the only hack that would make it work is :
toolchainopts = {'cstd':'c++11 -ip'}
but it is a hack that relies on having the value of cstd not being
quoted when transformed into CXXFLAGS.
What would be the proper way ?
I would expect having something like :
toolchainopts = {'extra_args':'whatever we need'}
Thoughts ?
--
---------------------------------
Maxime Boissonneault
Analyste de calcul - Calcul Québec, Université Laval
Président - Comité de coordination du soutien à la recherche de Calcul Québec
Team lead - Research Support National Team, Compute Canada
Instructeur Software Carpentry
Ph. D. en physique