use DCPU_BASELINE=DETECT for OpenCV when default optarch compiler option is used#2954
Conversation
| if ( | ||
| not optarch | ||
| or (get_software_root('GCC') and (optarch == 'march=native' or optarch.get('GCC') == 'march=native')) | ||
| or (get_software_root('intel-compilers') and (optarch == 'xHost' or optarch.get('Intel') == 'xHost')) |
There was a problem hiding this comment.
Ideally we don't hardcode march=native and xHost here, since those values may change.
We should check whether we can extract the default from framework (and if not maybe we need to introduce a constant in framework so the default can be easily obtained without hardcoding)
There was a problem hiding this comment.
And note that a manually set optarch may well be something more than march=native/xHost so a simple == doesn't suffice
| or (isinstance(optarch, str) and optimal_arch_option in optarch) | ||
| or (isinstance(optarch, dict) and ( | ||
| (get_software_root('GCC') and optimal_arch_option in optarch.get('GCC', '')) | ||
| or (get_software_root('intel-compilers') and optimal_arch_option in optarch.get('Intel', '')) |
There was a problem hiding this comment.
for intel < 2021a we would need to look for iccifort instead of intel-compilers?
|
Test report by @smoors Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
Test report by @migueldiascosta Overview of tested easyconfigs (in order)
Build succeeded for 6 out of 6 (6 easyconfigs in total) |
|
Test report by @migueldiascosta Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 0 out of 1 (1 easyconfigs in total) |
|
@smoors Hmm, I was hoping this would work with EasyBuild is configured with |
|
Test report by @smoors Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
DCPU_BASELINE=DETECT for OpenCV when default optarch compiler option is used
(created using
eb --new-pr)sets
-DCPU_BASELINE=DETECTalso ifmarch=native(default for GCC)xHost(default for intel)avoids build failure for example with GCC and
--optarch='Intel:march=core-avx2;GCC:march=native'