openblas: fix to build v0.3.11 or later with Fujitsu compiler. (#19853)

This commit is contained in:
Tomoki, Karatsu 2020-11-14 20:29:30 +09:00 committed by GitHub
parent 192bede002
commit e6b0019271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,14 @@
--- spack-src/f_check.org 2020-11-11 10:48:18.827643938 +0900
+++ spack-src/f_check 2020-11-11 10:51:46.448618264 +0900
@@ -69,7 +69,10 @@
$bu = "_";
}
- if ($data =~ /GNU/ || $data =~ /GCC/ ) {
+ if ($data =~ /Fujitsu/) {
+ $vendor = FUJITSU;
+ $openmp = "-Kopenmp";
+ } elsif ($data =~ /GNU/ || $data =~ /GCC/ ) {
$data =~ /(\d+)\.(\d+).(\d+)/;
$major = $1;

View File

@ -108,8 +108,9 @@ class Openblas(MakefilePackage):
when='@0.3.8:0.3.10 %apple-clang@12.0.0:')
# Add conditions to f_check to determine the Fujitsu compiler
patch('openblas_fujitsu.patch', when='%fj')
patch('openblas_fujitsu2.patch', when='@0.3.10 %fj')
patch('openblas_fujitsu.patch', when='@:0.3.10 %fj')
patch('openblas_fujitsu_v0.3.11.patch', when='@0.3.11: %fj')
patch('openblas_fujitsu2.patch', when='@0.3.10: %fj')
# See https://github.com/spack/spack/issues/3036
conflicts('%intel@16', when='@0.2.15:0.2.19')