@@ -76,22 +76,17 @@ should use, rather than the ones used by default (depending on the compiler in t
76
76
Like any other configuration setting, this can also be specified via ` $EASYBUILD_OPTARCH ` , or by defining ` optarch `
77
77
in an EasyBuild configuration file (cfr. [ Consistency across supported configuration types] [ configuration_consistency ] ).
78
78
79
- For example, by specifying ` --optarch=march=core2 ` , EasyBuild will use ` -march=core2 ` rather than the default
79
+ For example, by specifying ` --optarch=- march=core2 ` , EasyBuild will use ` -march=core2 ` rather than the default
80
80
flag ` --march=native ` (when using GCC compilers).
81
81
82
82
Likewise, to avoid using the default ` -xHost ` flag with the Intel compilers and using ` -xSSSE3 ` instead,
83
- you can define ` $EASYBUILD_OPTARCH ` to be equal to ` xSSSE3 ` .
84
-
85
- !!! note
86
- The first dash (` - ` ) is added automagically to the value specified to ` --optarch ` ,
87
- because of technicalities with the current implementation.
83
+ you can define ` $EASYBUILD_OPTARCH ` to be equal to ` -xSSSE3 ` .
88
84
89
85
The ` --optarch ` configuration option gives you flexibility to define the specific target architecture optimization
90
86
flags you want, but requires that you take care of specifying different flags for different compilers and choose
91
87
the right flags depending on your specific processor architecture.
92
88
93
89
94
-
95
90
### Optimizing for a generic processor architecture via ` --optarch=GENERIC ` {: #controlling_compiler_optimization_flags_optarch_generic }
96
91
97
92
To make EasyBuild optimize for a * generic* processor architecture, ` --optarch ` can be set to '` GENERIC ` '.
@@ -121,16 +116,14 @@ compiler used on the packages to be installed.
121
116
122
117
The syntax is ` <compiler:flags>;<compiler:flags> ` , where ` : ` separates the compiler name from the compiler flags,
123
118
and ` ; ` separates different compilers. This is an example for the Intel and GCC compilers:
124
- ` --optarch='Intel:xHost;GCC:march=x86-64 -mtune=generic' ` . As in the simple cases, EasyBuild adds one ` - ` to the
125
- flags specified, so the flags passed to the Intel and GCC compilers in this case are ` -xHost ` and
126
- ` -march=x86-64 -mtune=generic ` . Please note the quotes to escape the space in the GCC flags.
119
+ ` --optarch='Intel:-xHost;GCC:-march=x86-64 -mtune=generic' ` . Please note the quotes to escape the space in the GCC flags.
127
120
128
121
Additionally, ` GENERIC ` is also supported on a compiler basis, allowing to specify a generic compilation for the
129
- desired compilers. This is an example of this usage: ` --optarch=Intel:xHost;GCC:GENERIC ` . Of course, this is
122
+ desired compilers. This is an example of this usage: ` --optarch=Intel:- xHost;GCC:GENERIC ` . Of course, this is
130
123
supported just for compiler toolchains that recognize ` GENERIC ` .
131
124
132
125
The options for each compiler are set independently. That means that if a GCC-based toolchain is used, but the only
133
- compiler specified is ` Intel ` (for example with ` --optarch=Intel:xCORE-AVX2 ` ), then EasyBuild will behave as if
126
+ compiler specified is ` Intel ` (for example with ` --optarch=Intel:- xCORE-AVX2 ` ), then EasyBuild will behave as if
134
127
` --optarch ` was not specified for this toolchain.
135
128
136
129
The compiler name corresponds to the value of the ` COMPILER_FAMILY ` constant of the toolchain. Two common examples
0 commit comments