Add compilers
This commit is contained in:
parent
5a4068b497
commit
20e3f4d4f0
@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0y036qc7y30pfj1mnb9nzv2vmxy6xxiy4pgfci6l3jc0lccdsgf8";
|
sha256 = "0y036qc7y30pfj1mnb9nzv2vmxy6xxiy4pgfci6l3jc0lccdsgf8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
nativeBuildInputs = [ gcc gfortran libunwind ];
|
nativeBuildInputs = [ gcc gfortran libunwind ];
|
||||||
|
|
||||||
buildInputs = [ binutils-unwrapped boost boost.dev libiberty mpi
|
buildInputs = [ binutils-unwrapped boost boost.dev libiberty mpi
|
||||||
|
21
bsc/llvm-ompss2/default.nix
Normal file
21
bsc/llvm-ompss2/default.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
stdenv
|
||||||
|
, fetchgit
|
||||||
|
, cmake
|
||||||
|
, lld
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "10.0.0";
|
||||||
|
name = "llvm-ompss2-${version}";
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
buildInputs = [ cmake lld ];
|
||||||
|
preConfigure = ''
|
||||||
|
ls
|
||||||
|
mkdir llvm-build
|
||||||
|
cd llvm-build
|
||||||
|
../utils/OmpSs/setup-cmake.sh
|
||||||
|
'';
|
||||||
|
src = "./llvm-mono/";
|
||||||
|
#dontUnpack = true;
|
||||||
|
}
|
@ -9,12 +9,10 @@
|
|||||||
, hwloc
|
, hwloc
|
||||||
, papi
|
, papi
|
||||||
#, gnumake
|
#, gnumake
|
||||||
, withExtrae ? false , extrae
|
, extrae
|
||||||
, boost
|
, boost
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert withExtrae -> extrae != null;
|
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -26,6 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "03v1kpggdch25m1wfrdjl6crq252dgy6pms8h94d5jwcjh06fbf8";
|
sha256 = "03v1kpggdch25m1wfrdjl6crq252dgy6pms8h94d5jwcjh06fbf8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cd ${pname}-${version}
|
cd ${pname}-${version}
|
||||||
sed -i 's|/bin/echo|echo|g' loader/scripts/common.sh loader/scripts/lint/common.sh
|
sed -i 's|/bin/echo|echo|g' loader/scripts/common.sh loader/scripts/lint/common.sh
|
||||||
@ -44,10 +43,6 @@ stdenv.mkDerivation rec {
|
|||||||
numactl
|
numactl
|
||||||
hwloc
|
hwloc
|
||||||
papi ]
|
papi ]
|
||||||
++ optional withExtrae extrae;
|
++ (if (extrae != null) then [extrae] else []);
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
make V=1 src/version/CodeVersionInfo.cpp
|
|
||||||
make V=1
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,13 @@ in
|
|||||||
{
|
{
|
||||||
hello = stdenv.mkDerivation rec {
|
hello = stdenv.mkDerivation rec {
|
||||||
name = "tampi-${version}";
|
name = "tampi-${version}";
|
||||||
|
enableParallelBuilding = true;
|
||||||
buildInputs = [ automake autoconf libtool gnumake boost mpi gcc ];
|
buildInputs = [ automake autoconf libtool gnumake boost mpi gcc ];
|
||||||
#hardeningDisable = [ "format" ];
|
#hardeningDisable = [ "format" ];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
'';
|
'';
|
||||||
|
configureFlags = [ "--disable-mpi-mt-check" ];
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/bsc-pm/tampi/archive/v${version}.tar.gz";
|
url = "https://github.com/bsc-pm/tampi/archive/v${version}.tar.gz";
|
||||||
sha256 = "8608a74325939d2a6b56e82f7f6788efbc67731e2d64793bac69475f5b4b9704";
|
sha256 = "8608a74325939d2a6b56e82f7f6788efbc67731e2d64793bac69475f5b4b9704";
|
||||||
|
19
default.nix
19
default.nix
@ -12,16 +12,27 @@ let
|
|||||||
|
|
||||||
self.bsc = rec {
|
self.bsc = rec {
|
||||||
# Load the current implementations
|
# Load the current implementations
|
||||||
self.mpi = pkgs.mpich;
|
#mpi = pkgs.mpich;
|
||||||
|
mpi = pkgs.openmpi;
|
||||||
|
|
||||||
|
# Load the compiler
|
||||||
|
#stdenv = pkgs.gcc7Stdenv;
|
||||||
|
#stdenv = pkgs.gcc9Stdenv;
|
||||||
|
#stdenv = pkgs.gcc10Stdenv;
|
||||||
|
stdenv = pkgs.clangStdenv;
|
||||||
|
|
||||||
extrae = callPackage ./bsc/extrae {
|
extrae = callPackage ./bsc/extrae {
|
||||||
mpi = self.mpi;
|
mpi = mpi;
|
||||||
};
|
};
|
||||||
|
|
||||||
tampi = callPackage ./bsc/tampi {
|
tampi = callPackage ./bsc/tampi {
|
||||||
mpi = self.mpi;
|
mpi = mpi;
|
||||||
};
|
};
|
||||||
|
|
||||||
nanos6 = callPackage ./bsc/nanos6 { };
|
nanos6 = callPackage ./bsc/nanos6 {
|
||||||
|
extrae = extrae;
|
||||||
|
};
|
||||||
|
|
||||||
|
#llvm-ompss2 = callPackage ./bsc/llvm-ompss2 { };
|
||||||
};
|
};
|
||||||
in pkgs // self
|
in pkgs // self
|
||||||
|
Loading…
Reference in New Issue
Block a user