Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/build/pkgs/atlas/patches/archinfo_linux.c.patch
8818 views
1
--- src/CONFIG/src/backend/archinfo_linux.c 2012-06-23 17:27:27.000000000 +0100
2
+++ new/CONFIG/src/backend/archinfo_linux.c 2012-06-24 03:17:47.297954105 +0100
3
@@ -117,7 +117,7 @@
4
}
5
break;
6
case AFIA64:
7
- res = atlsys_1L(NULL, "fgrep 'Itanium' /proc/cpuinfo", 0, 0);
8
+ res = atlsys_1L(NULL, "fgrep 'IA-64' /proc/cpuinfo", 0, 0);
9
if (res && res[0] == '\0')
10
{
11
free(res);
12
@@ -129,7 +129,7 @@
13
{
14
if (res[0] != '\0')
15
{
16
- if (strstr(res, "Itanium 2") || strstr(res, "McKinley"))
17
+ if (strstr(res, "IA-64") || strstr(res, "McKinley"))
18
mach = IA64Itan2;
19
else if (strstr(res, "Itanium")) mach = IA64Itan;
20
}
21
22