summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2022-01-22 18:27:38 +0100
committerGitHub <noreply@github.com>2022-01-22 18:27:38 +0100
commit1937b4e435cce48dbf8d7d124800e03e1ba5d30d (patch)
treeba40669912927053c05a9a102e2f3d10861a6f5a
parentc1c0d5ce1d7c04d755882521213f5a01c9e4fdbf (diff)
downloadopenblas-1937b4e435cce48dbf8d7d124800e03e1ba5d30d.tar.gz
openblas-1937b4e435cce48dbf8d7d124800e03e1ba5d30d.tar.bz2
openblas-1937b4e435cce48dbf8d7d124800e03e1ba5d30d.zip
Add Elbrus e2k architecture detection
-rw-r--r--c_check7
-rw-r--r--ctest.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/c_check b/c_check
index 030f5e632..999f5a7a7 100644
--- a/c_check
+++ b/c_check
@@ -84,6 +84,7 @@ $os = Haiku if ($data =~ /OS_HAIKU/);
$architecture = x86 if ($data =~ /ARCH_X86/);
$architecture = x86_64 if ($data =~ /ARCH_X86_64/);
+$architecture = e2k if ($data =~ /ARCH_E2K/);
$architecture = power if ($data =~ /ARCH_POWER/);
$architecture = mips if ($data =~ /ARCH_MIPS/);
$architecture = mips64 if ($data =~ /ARCH_MIPS64/);
@@ -124,6 +125,11 @@ if ($architecture eq "zarch") {
$binary = 64;
}
+if ($architecture eq "e2k") {
+ $defined = 1;
+ $binary = 64;
+}
+
if ($architecture eq "alpha") {
$defined = 1;
$binary = 64;
@@ -223,6 +229,7 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) {
$architecture = x86 if ($data =~ /ARCH_X86/);
$architecture = x86_64 if ($data =~ /ARCH_X86_64/);
+$architecture = e2k if ($data =~ /ARCH_E2K/);
$architecture = power if ($data =~ /ARCH_POWER/);
$architecture = mips if ($data =~ /ARCH_MIPS/);
$architecture = mips64 if ($data =~ /ARCH_MIPS64/);
diff --git a/ctest.c b/ctest.c
index 2afd93f68..fc52b43a6 100644
--- a/ctest.c
+++ b/ctest.c
@@ -165,3 +165,7 @@ ARCH_LOONGARCH64
HAVE_C11
#endif
+#if defined(__e2k__)
+ARCH_E2K
+#endif
+