Compare commits
3 Commits
974bb56dc3
...
24326d4fce
| Author | SHA1 | Date | |
|---|---|---|---|
| 24326d4fce | |||
| f4472f6082 | |||
| 1ac5992754 |
@ -10,8 +10,6 @@
|
|||||||
, nosv
|
, nosv
|
||||||
, mpi
|
, mpi
|
||||||
, tampi
|
, tampi
|
||||||
, tagaspi
|
|
||||||
, gpi-2
|
|
||||||
, openblas
|
, openblas
|
||||||
, ovni
|
, ovni
|
||||||
, gitBranch ? "master"
|
, gitBranch ? "master"
|
||||||
@ -40,8 +38,6 @@ stdenv.mkDerivation rec {
|
|||||||
nosv
|
nosv
|
||||||
mpi
|
mpi
|
||||||
tampi
|
tampi
|
||||||
tagaspi
|
|
||||||
gpi-2
|
|
||||||
openblas
|
openblas
|
||||||
openblas.dev
|
openblas.dev
|
||||||
ovni
|
ovni
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, ncurses
|
|
||||||
, lib
|
, lib
|
||||||
, dpkg
|
, dpkg
|
||||||
, rsync
|
, rsync
|
||||||
@ -10,12 +9,9 @@
|
|||||||
, hwloc
|
, hwloc
|
||||||
, zlib
|
, zlib
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
, symlinkJoin
|
|
||||||
, libfabric
|
, libfabric
|
||||||
, gcc13
|
, gcc13
|
||||||
, gcc7
|
|
||||||
, wrapCCWith
|
, wrapCCWith
|
||||||
, linuxHeaders
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# The distribution of intel packages is a mess. We are doing the installation
|
# The distribution of intel packages is a mess. We are doing the installation
|
||||||
|
|||||||
@ -17,16 +17,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-SzwplRBO3V0R3m3p15n71ivYBMGoLsajFK2TapYxdqk=";
|
sha256 = "sha256-SzwplRBO3V0R3m3p15n71ivYBMGoLsajFK2TapYxdqk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
export sourceRoot="$sourceRoot/src"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i "s@/bin/rm@rm@g" $(find . -name Makefile)
|
sed -i "s@/bin/rm@rm@g" $(find . -name Makefile)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ libtirpc ];
|
buildInputs = [ libtirpc ];
|
||||||
patches = [ ./fix-install.patch ];
|
patches = [ ./fix-install.patch ./gcc-14.patch ];
|
||||||
|
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "all" ];
|
||||||
|
|
||||||
@ -34,7 +30,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
makeFlagsArray+=(
|
makeFlagsArray+=(
|
||||||
|
-C src
|
||||||
BASE=$out
|
BASE=$out
|
||||||
|
CFLAGS=-Wno-implicit-int
|
||||||
CPPFLAGS=-I${libtirpc.dev}/include/tirpc
|
CPPFLAGS=-I${libtirpc.dev}/include/tirpc
|
||||||
LDFLAGS=-ltirpc
|
LDFLAGS=-ltirpc
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--- a/Makefile
|
--- a/src/Makefile
|
||||||
+++ b/Makefile
|
+++ b/src/Makefile
|
||||||
@@ -144,6 +144,7 @@ install-target:
|
@@ -144,6 +144,7 @@ install-target:
|
||||||
if [ ! -d $(BASE)/include ]; then mkdir $(BASE)/include; fi
|
if [ ! -d $(BASE)/include ]; then mkdir $(BASE)/include; fi
|
||||||
if [ ! -d $(BASE)/lib ]; then mkdir $(BASE)/lib; fi
|
if [ ! -d $(BASE)/lib ]; then mkdir $(BASE)/lib; fi
|
||||||
|
|||||||
77
pkgs/lmbench/gcc-14.patch
Normal file
77
pkgs/lmbench/gcc-14.patch
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
From a3c6e7d303cd8368e8d4e35be7cbc1997e801257 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
|
||||||
|
Date: Mon, 21 Jul 2025 17:38:58 +0200
|
||||||
|
Subject: [PATCH] Misc fixes to build with gcc 14
|
||||||
|
|
||||||
|
---
|
||||||
|
src/bench.h | 2 ++
|
||||||
|
src/lat_select.c | 2 +-
|
||||||
|
src/lib_debug.c | 1 +
|
||||||
|
src/lib_sched.c | 2 +-
|
||||||
|
src/lib_timing.c | 2 +-
|
||||||
|
5 files changed, 6 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/bench.h b/src/bench.h
|
||||||
|
index 8166408..4da9079 100644
|
||||||
|
--- a/src/bench.h
|
||||||
|
+++ b/src/bench.h
|
||||||
|
@@ -320,4 +320,6 @@ extern int handle_scheduler(int childno, int benchproc, int nbenchprocs);
|
||||||
|
extern char *rpc_xact_1();
|
||||||
|
extern char *client_rpc_xact_1();
|
||||||
|
|
||||||
|
+void lmbench_usage(int argc, char *argv[], char* usage);
|
||||||
|
+
|
||||||
|
#endif /* _BENCH_H */
|
||||||
|
diff --git a/src/lat_select.c b/src/lat_select.c
|
||||||
|
index 583b505..39df369 100644
|
||||||
|
--- a/src/lat_select.c
|
||||||
|
+++ b/src/lat_select.c
|
||||||
|
@@ -164,7 +164,7 @@ doit(iter_t iterations, void * cookie)
|
||||||
|
state_t * state = (state_t *)cookie;
|
||||||
|
fd_set nosave;
|
||||||
|
static struct timeval tv;
|
||||||
|
- static count = 0;
|
||||||
|
+ static int count = 0;
|
||||||
|
|
||||||
|
tv.tv_sec = 0;
|
||||||
|
tv.tv_usec = 0;
|
||||||
|
diff --git a/src/lib_debug.c b/src/lib_debug.c
|
||||||
|
index e8347dd..cf65312 100644
|
||||||
|
--- a/src/lib_debug.c
|
||||||
|
+++ b/src/lib_debug.c
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
|
#include "bench.h"
|
||||||
|
#include "lib_debug.h"
|
||||||
|
+#include <math.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* return micro-seconds / iteration at the the fraction point.
|
||||||
|
diff --git a/src/lib_sched.c b/src/lib_sched.c
|
||||||
|
index aa83ae0..4f16bbf 100644
|
||||||
|
--- a/src/lib_sched.c
|
||||||
|
+++ b/src/lib_sched.c
|
||||||
|
@@ -91,7 +91,7 @@ handle_scheduler(int childno, int benchproc, int nbenchprocs)
|
||||||
|
childno * (nbenchprocs + 1) + benchproc);
|
||||||
|
} else {
|
||||||
|
/* default action: do nothing */
|
||||||
|
- return;
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return sched_pin(cpu % sched_ncpus());
|
||||||
|
diff --git a/src/lib_timing.c b/src/lib_timing.c
|
||||||
|
index af8cf68..7ec9652 100644
|
||||||
|
--- a/src/lib_timing.c
|
||||||
|
+++ b/src/lib_timing.c
|
||||||
|
@@ -1623,7 +1623,7 @@ bread(void* buf, long nbytes)
|
||||||
|
void
|
||||||
|
touch(char *buf, int nbytes)
|
||||||
|
{
|
||||||
|
- static psize;
|
||||||
|
+ static int psize;
|
||||||
|
|
||||||
|
if (!psize) {
|
||||||
|
psize = getpagesize();
|
||||||
|
--
|
||||||
|
2.49.0
|
||||||
|
|
||||||
Reference in New Issue
Block a user