On 07/08/15 15:55, Kenneth Hoste wrote: [...] > What Bart was saying is that he added 'configopts = ...' to the GCC > easyconfig file, which resulted in the extra configure flags to be used > when GCC is built. [...]
Yeah, what I'm trying to achieve is the same, all GCC's to be built with: --with-arch=native so that people who build their own code with GCC will get to use the full capabilities of the architecture by default. (I muddled the --march and --with-arch options from looking through all the various places that could set native and didn't got back and double check our own scripts, sigh). The simplest way to do that is to just patch: /usr/local/easybuild/software/EasyBuild/2.2.0/lib/python2.6/site-packages/easybuild_easyblocks-2.2.0-py2.6.egg/easybuild/easyblocks/g/gcc.py to add: configopts += " --with-arch=native" after it's set all other options, that way you don't have to try and patch every GCC easyconfig file. We've already set __INTEL_PRE_CFLAGS and __INTEL_PRE_FFLAGS so that's the Intel compilers covered. Having already gone through and done the Slurm patching for OpenMPI and now find that having upgraded to 2.2.0 I've got to try and merge them all together again just to add: configopts += " --with-slurm" I think if there's a similar way to fix OpenMPI too. cheers! Chris -- Christopher Samuel Senior Systems Administrator VLSCI - Victorian Life Sciences Computation Initiative Email: [email protected] Phone: +61 (0)3 903 55545 http://www.vlsci.org.au/ http://twitter.com/vlsci

