-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15885 from Flamefire/20220721125637_new_pr_OpenBL…
…AS0318 work around miscompilation of OpenBLAS on POWER by compiling with -fstack-protector-strong
- Loading branch information
Showing
7 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
easybuild/easyconfigs/o/OpenBLAS/OpenBLAS-0.3.15_workaround-gcc-miscompilation.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Workaround optimizer bug in GCC on POWER9. | ||
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100799 | ||
|
||
Author: Alexander Grund (TU Dresden) | ||
|
||
diff --git a/Makefile.power b/Makefile.power | ||
index 946f5523..96b14dca 100644 | ||
--- a/Makefile.power | ||
+++ b/Makefile.power | ||
@@ -35,6 +35,7 @@ endif | ||
ifneq ($(F_COMPILER), PGI) | ||
FCOMMON_OPT += -O2 -frecursive -fno-fast-math | ||
ifeq ($(C_COMPILER), GCC) | ||
+FCOMMON_OPT += -fstack-protector-strong | ||
ifneq ($(GCCVERSIONGT4), 1) | ||
$(warning your compiler is too old to fully support POWER9, getting a newer version of gcc is recommended) | ||
FCOMMON_OPT += -mcpu=power8 -mtune=power8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters