diff --git a/src/tools/cray.jam b/src/tools/cray.jam index a7d3b51c3..1fa1ddc01 100644 --- a/src/tools/cray.jam +++ b/src/tools/cray.jam @@ -50,8 +50,10 @@ generators.register-c-compiler cray.compile.c : C : OBJ : cray ; # unlike most compliers, Cray defaults to static linking. # flags cxx LINKFLAGS static : -bstatic ; -flags cray.compile OPTIONS on : -G0 ; -flags cray.link OPTIONS on : -G0 ; +# flags cray.compile OPTIONS on : -G0 ; +flags cray.compile OPTIONS on : -g ; +# flags cray.link OPTIONS on : -G0 ; +flags cray.link OPTIONS on : -g ; flags cray.compile OPTIONS off : -O0 ; flags cray.compile OPTIONS speed : -O2 ; @@ -67,11 +69,14 @@ flags cray.compile DEFINES ; flags cray.compile INCLUDES ; flags cray.link OPTIONS ; -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 shared : -dynamic ; flags cray.compile OPTIONS static : -static ; -flags cray.link OPTIONS static : -static ; -flags cray.link OPTIONS shared : ; +# flags cray.link OPTIONS static : -static ; +# flags cray.link OPTIONS shared ; +flags cray.link OPTIONS 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 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 shared : -dynamic ; flags cray.link LIBPATH ;