Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
math/elpa: Update 2019.05.002 -> 2021.11.001
A special hack is used to build this port because GNU Makefiles don't build components in proper order by default, and .mod files are built only after they are used. It was broken for a long while for this reason.
- Loading branch information
Showing
4 changed files
with
83 additions
and
30 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1570675365 | ||
SHA256 (elpa-2019.05.002.tar.gz) = d2eab5e5d74f53601220b00d18185670da8c00c13e1c1559ecfb0cd7cb2c4e8d | ||
SIZE (elpa-2019.05.002.tar.gz) = 1239916 | ||
TIMESTAMP = 1642194690 | ||
SHA256 (elpa-2021.11.001.tar.gz) = fb361da6c59946661b73e51538d419028f763d7cb9dacf9d8cd5c9cd3fb7802f | ||
SIZE (elpa-2021.11.001.tar.gz) = 1388817 |
32 changes: 32 additions & 0 deletions
32
math/elpa/files/patch-src_helpers_check__thread__affinity.c
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,32 @@ | ||
--- src/helpers/check_thread_affinity.c.orig 2021-11-16 11:26:03 UTC | ||
+++ src/helpers/check_thread_affinity.c | ||
@@ -47,11 +47,14 @@ | ||
// | ||
// Author: Andreas Marek, MPCDF | ||
|
||
-#define _GNU_SOURCE | ||
+//#define _GNU_SOURCE | ||
+#define __BSD_VISIBLE | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <sched.h> | ||
#include <sys/types.h> | ||
+#include <sys/_cpuset.h> | ||
+#include <sys/cpuset.h> | ||
#include <unistd.h> | ||
|
||
|
||
@@ -60,11 +63,11 @@ void get_thread_affinity(int *cpu_id) { | ||
} | ||
|
||
void get_process_affinity(int cpu_id) { | ||
- cpu_set_t set; | ||
+ cpuset_t set; | ||
int ret, i; | ||
int cpu; | ||
cpu_id = 9999999 ; | ||
- ret = sched_getaffinity(0, sizeof(cpu_set_t), &set); | ||
+ ret = sched_getaffinity(0, sizeof(cpuset_t), &set); | ||
for (i=0; i < CPU_SETSIZE; i++) | ||
{ | ||
cpu = CPU_ISSET(i, &set); |
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