2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Mods to get Cray building cleanly, target native hardware

on compute nodes.
This commit is contained in:
K. Noel Belcourt
2014-05-16 23:06:32 -06:00
parent 8dcc9ce950
commit 59fd3b651e

View File

@@ -50,8 +50,10 @@ generators.register-c-compiler cray.compile.c : C : OBJ : <toolset>cray ;
# unlike most compliers, Cray defaults to static linking.
# flags cxx LINKFLAGS <runtime-link>static : -bstatic ;
flags cray.compile OPTIONS <debug-symbols>on : -G0 ;
flags cray.link OPTIONS <debug-symbols>on : -G0 ;
# flags cray.compile OPTIONS <debug-symbols>on : -G0 ;
flags cray.compile OPTIONS <debug-symbols>on : -g ;
# flags cray.link OPTIONS <debug-symbols>on : -G0 ;
flags cray.link OPTIONS <debug-symbols>on : -g ;
flags cray.compile OPTIONS <optimization>off : -O0 ;
flags cray.compile OPTIONS <optimization>speed : -O2 ;
@@ -67,11 +69,14 @@ flags cray.compile DEFINES <define> ;
flags cray.compile INCLUDES <include> ;
flags cray.link OPTIONS <linkflags> ;
flags cray.compile OPTIONS : -hgnu -fPIC -h system_alloc -h tolerant -h ipa0 ;
# flags cray.compile OPTIONS : -hgnu -fPIC -h system_alloc -h tolerant -h ipa0 ;
flags cray.compile OPTIONS : -march=bdver1 -mfpmath=sse -mfma4 -mavx -funroll-all-loops -mprefer-avx128 -fprefetch-loop-arrays --param prefetch-latency=300 -minline-all-stringops -ffast-math -fno-finite-math-only ;
flags cray.compile OPTIONS <link>shared : -dynamic ;
flags cray.compile OPTIONS <link>static : -static ;
flags cray.link OPTIONS <link>static : -static ;
flags cray.link OPTIONS <link>shared : ;
# flags cray.link OPTIONS <link>static : -static ;
# flags cray.link OPTIONS <link>shared ;
flags cray.link OPTIONS <link>static : -static -march=bdver1 -mfpmath=sse -mfma4 -mavx -funroll-all-loops -mprefer-avx128 -fprefetch-loop-arrays --param prefetch-latency=300 -minline-all-stringops -ffast-math -fno-finite-math-only -Xlinker --allow-multiple-definition ;
flags cray.link OPTIONS <link>shared : -march=bdver1 -mfpmath=sse -mfma4 -mavx -funroll-all-loops -mprefer-avx128 -fprefetch-loop-arrays --param prefetch-latency=300 -minline-all-stringops -ffast-math -fno-finite-math-only -Xlinker --allow-multiple-definition ;
flags cray.link LOPTIONS <link>shared : -dynamic ;
flags cray.link LIBPATH <library-path> ;