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

Added the 'simple' randomwalk+dgemm application package.

parent 86d8cd43
{ stdenv, fetchgit, zeromq, intel, gsl }:
{ stdenv, fetchgit, zeromq, intel, gsl, libnrm }:
stdenv.mkDerivation {
name = "simple";
src = fetchgit {
......@@ -6,15 +6,16 @@ stdenv.mkDerivation {
sha256="0wpxb25bfry116rzjb8c66fpxqibrn1dby4xpfsbrnvbhhirck9z";
};
buildInputs = [ zeromq intel.mkl intel.icc gsl ];
buildInputs = [ zeromq intel.mkl intel.icc gsl libnrm ];
buildPhase = ''
cd simple
make CC=icc
make CC=icc dgemm
make CC=icc randomwalk
'';
installPhase = ''
mkdir -p $out/bin
cp randomwalk dgemme $out/bin/graph500_reference_bfs
cp randomwalk dgemm $out/bin/
'';
}
......@@ -20,39 +20,34 @@ let
makeLibraryPath = makeSearchPathOutput "lib" "lib";
};
in rec {
libnrm = callPackage ./libnrm {};
nrm-containers = callPackage ./containers {
inherit pythonPackages;
src = packagepins.containers.nix;
};
nrm = callPackage ./nrm {
inherit pythonPackages nrm-containers;
src = packagepins.nrm.bandit;
};
#NRM components
libnrm = callPackage ./libnrm {};
nrm-containers = callPackage ./containers {
inherit pythonPackages;
src = packagepins.containers.nix;
};
nrm = callPackage ./nrm {
inherit pythonPackages nrm-containers;
src = packagepins.nrm.bandit;
};
applications = {
lammps = pkgs.lammps-mpi;
amg = callPackage applications/amg {};
qmcpack = callPackage applications/qmcpack {};
openmc = callPackage applications/openmc {};
stream = callPackage applications/stream {};
graph500 = callPackage applications/graph500 {};
simple = callPackage applications/simple {inherit intel;};
};
#Instrumented applications
applications = rec {
lammps = pkgs.lammps-mpi;
amg = callPackage applications/amg {};
qmcpack = callPackage applications/qmcpack {};
openmc = callPackage applications/openmc {};
stream = callPackage applications/stream {};
graph500 = callPackage applications/graph500 {};
simple = callPackage applications/simple {inherit intel libnrm;};
};
intel = with pkgs; rec {
#Intel compilers
intel = with pkgs; rec {
inherit utils;
compiler_path = "/opt/intel/compilers_and_libraries_2017.1.132/linux/";
icc = callPackage intel/icc { 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