forked from rarias/bscpkgs
ompss2: fix to the last release
This commit is contained in:
@@ -1,43 +1,53 @@
|
||||
{
|
||||
stdenv
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, automake
|
||||
, autoconf
|
||||
, autoreconfHook
|
||||
, libtool
|
||||
, pkg-config
|
||||
, numactl
|
||||
, hwloc
|
||||
, papi
|
||||
#, gnumake
|
||||
, extrae
|
||||
, boost
|
||||
, enableJemalloc ? false
|
||||
, jemalloc ? null
|
||||
, cachelineBytes ? 64
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nanos6";
|
||||
version = "2.4";
|
||||
version = "2.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pm.bsc.es/ftp/ompss-2/releases/ompss-2-2020.06.tar.gz";
|
||||
sha256 = "0f9hy2avblv31wi4910x81wc47dwx8x9nd72y02lgrhl7fc9i2sf";
|
||||
src = fetchFromGitHub {
|
||||
owner = "bsc-pm";
|
||||
repo = "nanos6";
|
||||
rev = "version-${version}";
|
||||
sha256 = "1wyr8liyz1l7rbf5flxihabasm887bq2jcp2csma7b9rhrfyhkm1";
|
||||
};
|
||||
|
||||
enableParallelBuilding = false;
|
||||
preConfigure = ''
|
||||
cd ${pname}-${version}
|
||||
sed -i 's|/bin/echo|echo|g' loader/scripts/common.sh loader/scripts/lint/common.sh
|
||||
prePatch = ''
|
||||
patchShebangs scripts/generate_config.sh
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-symbol-resolution=indirect"
|
||||
];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
#configureFlags = []
|
||||
# ++ (if (extrae != null) then ["--with-extrae=${extrae}"] else [""]);
|
||||
preConfigure = ''
|
||||
export CACHELINE_WIDTH=${toString cachelineBytes}
|
||||
'';
|
||||
|
||||
configureFlags = [] ++
|
||||
optional enableJemalloc "--with-jemalloc=${jemalloc}";
|
||||
|
||||
# The "bindnow" flags are incompatible with ifunc resolution mechanism. We
|
||||
# disable all by default, which includes bindnow.
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
buildInputs = [
|
||||
autoreconfHook
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
, autoreconfHook
|
||||
, enableJemalloc ? false
|
||||
, jemalloc ? null
|
||||
, cachelineBytes ? 64
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@@ -21,12 +22,10 @@ stdenv.mkDerivation rec {
|
||||
pname = "nanos6";
|
||||
version = "${src.shortRev}";
|
||||
branch = "master";
|
||||
cacheline-width = "64";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/nanos6/nanos6";
|
||||
ref = branch;
|
||||
rev = "bd306f903c7a4396f579402666082f5a7c34570b";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
@@ -36,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preConfigure = ''
|
||||
export CACHELINE_WIDTH=${cacheline-width}
|
||||
export CACHELINE_WIDTH=${toString cacheline-width}
|
||||
export NANOS6_GIT_VERSION=${src.rev}
|
||||
export NANOS6_GIT_BRANCH=${branch}
|
||||
'';
|
||||
@@ -54,7 +53,6 @@ stdenv.mkDerivation rec {
|
||||
automake
|
||||
libtool
|
||||
pkg-config
|
||||
perl
|
||||
boost
|
||||
numactl
|
||||
hwloc
|
||||
|
||||
Reference in New Issue
Block a user