heat: Use clang by default
This commit is contained in:
parent
9e477a2313
commit
7a80d1ca98
@ -1,32 +1,47 @@
|
|||||||
{
|
{
|
||||||
stdenv
|
stdenv
|
||||||
, nanos6
|
|
||||||
, mpi
|
, mpi
|
||||||
, tampi
|
, tampi
|
||||||
, mcxx
|
, clangOmpss2
|
||||||
, icc
|
, bsx ? 1024
|
||||||
|
, bsy ? 1024
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "heat";
|
name = "heat";
|
||||||
|
extension = if (bsx == bsy)
|
||||||
|
then "${toString bsx}bs.exe"
|
||||||
|
else "${toString bsx}x${toString bsy}bs.exe";
|
||||||
|
|
||||||
src = builtins.fetchGit {
|
variant = "heat_ompss";
|
||||||
url = "ssh://git@bscpm02.bsc.es/benchmarks/ompss-2/heat-conflict-kevin.git";
|
target = "${variant}.${extension}";
|
||||||
#rev = "25fde23e5ad5f5e2e58418ed269bc2b44642aa17";
|
|
||||||
ref = "master";
|
makeFlags = [
|
||||||
};
|
"BSX=${toString bsx}"
|
||||||
|
"BSY=${toString bsy}"
|
||||||
|
target
|
||||||
|
];
|
||||||
|
|
||||||
|
src = ~/heat;
|
||||||
|
#src = builtins.fetchGit {
|
||||||
|
# url = "ssh://git@bscpm02.bsc.es/garlic/apps/heat.git";
|
||||||
|
# ref = "garlic";
|
||||||
|
#};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
nanos6
|
|
||||||
mpi
|
mpi
|
||||||
icc
|
clangOmpss2
|
||||||
tampi
|
tampi
|
||||||
mcxx
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programPath = "/bin/${target}";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp heat_* $out/bin/
|
cp ${target} $out/bin/
|
||||||
|
|
||||||
|
mkdir -p $out/etc
|
||||||
|
cp heat.conf $out/etc/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
18
overlay.nix
18
overlay.nix
@ -238,10 +238,20 @@ let
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# heat = callPackage ./garlic/apps/heat {
|
heat = callPackage ./garlic/apps/heat/default.nix { };
|
||||||
# stdenv = pkgs.gcc7Stdenv;
|
# heat = callPackage ./garlic/apps/heat/default.nix {
|
||||||
# mpi = intel-mpi;
|
# # FIXME: The heat program must be able to compile with gcc9 and newer
|
||||||
# tampi = tampi;
|
# stdenv = self.gcc7Stdenv;
|
||||||
|
# #mpi = intel-mpi;
|
||||||
|
# #tampi = tampi;
|
||||||
|
#
|
||||||
|
# # FIXME: Nanos6 fails to load if we are not using a compatible stdc++
|
||||||
|
# # version, so we use the same provided by gcc7
|
||||||
|
# mcxx = self.bsc.mcxx.override {
|
||||||
|
# nanos6 = self.bsc.nanos6.override {
|
||||||
|
# stdenv = self.gcc7Stdenv;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
# };
|
# };
|
||||||
#
|
#
|
||||||
# lulesh = callPackage ./garlic/apps/lulesh {
|
# lulesh = callPackage ./garlic/apps/lulesh {
|
||||||
|
Loading…
Reference in New Issue
Block a user