Hi Chris,

I've done that here for GCC 4.9.3:
configopts = "--with-arch=westmere --with-pkgversion=%s-guillimin
--with-bugurl=http://www.hpc.mcgill.ca/starthere"%version
languages = ['c', 'c++', 'java', 'fortran', 'go']

then we see in gcc -v:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/sb/software/CentOS-6/eb/software/Core/GCC/4.9.3-binutils-2.25/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --with-arch=westmere
--with-pkgversion=4.9.3-guillimin
--with-bugurl=http://www.hpc.mcgill.ca/starthere
--enable-languages=c,c++,java,fortran,go --enable-lto
--enable-checking=release --disable-multilib --enable-shared=yes
--enable-static=yes --enable-threads=posix --enable-gold=default
--enable-plugins --enable-ld --with-plugin-ld=ld.gold
--prefix=/software/CentOS-6/eb/software/Core/GCC/4.9.3-binutils-2.25
--with-local-prefix=/software/CentOS-6/eb/software/Core/GCC/4.9.3-binutils-2.25
--enable-bootstrap
--with-cloog=/dev/shm/GCC/4.9.3/dummy--binutils-2.25/gcc-4.9.3/stage2_stuff
--with-isl=/dev/shm/GCC/4.9.3/dummy--binutils-2.25/gcc-4.9.3/stage2_stuff
Thread model: posix
gcc version 4.9.3 (4.9.3-guillimin)


the default does not set --with-arch but many easybuilds use it via
the optarch setting. For now I am just compiling everything on
westmere nodes (I am also just starting with easybuild) but I could
also create two sets of modules, one for westmere and one for
sandybridge (we also have some ivybridge but that is not worth the
effort optimizing for).

Regards,
Bart


-- 
Dr. Bart E. Oldeman | [email protected] | [email protected]
Scientific Computing Analyst / Analyste en calcul scientifique
McGill HPC Centre / Centre de Calcul Haute Performance de McGill |
http://www.hpc.mcgill.ca
Calcul Québec | http://www.calculquebec.ca
Compute/Calcul Canada | http://www.computecanada.ca
Tel/Tél: 514-396-8926 | Fax/Télécopieur: 514-396-8934

Reply via email to