Commit 1abf6edd authored by Valentin Reis's avatar Valentin Reis
Browse files

Added the 'simple' randomwalk+dgemm application package.

parent 86d8cd43
{ stdenv, fetchgit, zeromq, intel, gsl }: { stdenv, fetchgit, zeromq, intel, gsl, libnrm }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "simple"; name = "simple";
src = fetchgit { src = fetchgit {
...@@ -6,15 +6,16 @@ stdenv.mkDerivation { ...@@ -6,15 +6,16 @@ stdenv.mkDerivation {
sha256="0wpxb25bfry116rzjb8c66fpxqibrn1dby4xpfsbrnvbhhirck9z"; sha256="0wpxb25bfry116rzjb8c66fpxqibrn1dby4xpfsbrnvbhhirck9z";
}; };
buildInputs = [ zeromq intel.mkl intel.icc gsl ]; buildInputs = [ zeromq intel.mkl intel.icc gsl libnrm ];
buildPhase = '' buildPhase = ''
cd simple cd simple
make CC=icc make CC=icc dgemm
make CC=icc randomwalk
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp randomwalk dgemme $out/bin/graph500_reference_bfs cp randomwalk dgemm $out/bin/
''; '';
} }
...@@ -20,39 +20,34 @@ let ...@@ -20,39 +20,34 @@ let
makeLibraryPath = makeSearchPathOutput "lib" "lib"; makeLibraryPath = makeSearchPathOutput "lib" "lib";
}; };
in rec { in rec {
libnrm = callPackage ./libnrm {}; #NRM components
nrm-containers = callPackage ./containers { libnrm = callPackage ./libnrm {};
inherit pythonPackages; nrm-containers = callPackage ./containers {
src = packagepins.containers.nix; inherit pythonPackages;
}; src = packagepins.containers.nix;
nrm = callPackage ./nrm { };
inherit pythonPackages nrm-containers; nrm = callPackage ./nrm {
src = packagepins.nrm.bandit; inherit pythonPackages nrm-containers;
}; src = packagepins.nrm.bandit;
};
applications = { #Instrumented applications
lammps = pkgs.lammps-mpi; applications = rec {
amg = callPackage applications/amg {}; lammps = pkgs.lammps-mpi;
qmcpack = callPackage applications/qmcpack {}; amg = callPackage applications/amg {};
openmc = callPackage applications/openmc {}; qmcpack = callPackage applications/qmcpack {};
stream = callPackage applications/stream {}; openmc = callPackage applications/openmc {};
graph500 = callPackage applications/graph500 {}; stream = callPackage applications/stream {};
simple = callPackage applications/simple {inherit intel;}; graph500 = callPackage applications/graph500 {};
}; simple = callPackage applications/simple {inherit intel libnrm;};
};
intel = with pkgs; rec { #Intel compilers
intel = with pkgs; rec {
inherit utils; inherit utils;
compiler_path = "/opt/intel/compilers_and_libraries_2017.1.132/linux/"; compiler_path = "/opt/intel/compilers_and_libraries_2017.1.132/linux/";
icc = callPackage intel/icc { inherit compiler_path; }; icc = callPackage intel/icc { inherit compiler_path; };
mkl = callPackage intel/mkl { inherit compiler_path; }; mkl = callPackage intel/mkl { inherit compiler_path; };
#WrappedICC = if (icc-native != null) then (import ../patches/cc-wrapper { };
#inherit stdenv binutils coreutils ;
#libc = glibc;
#nativeTools = false;
#nativeLibc = false;
#cc = icc-native;
#}) else null;
#stdenvICC = (overrideCC stdenv WrappedICC) // { isICC = true; };
};
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment