forked from rarias/bscpkgs
Move apps to garlic
This commit is contained in:
46
garlic/hpcg/default.nix
Normal file
46
garlic/hpcg/default.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
stdenv
|
||||
, nanos6
|
||||
, mpi
|
||||
, mcxx
|
||||
, tampi
|
||||
, icc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "hpcg";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/rpenacob/hpcg.git";
|
||||
ref = "symgs_coloring_more_than_one_block_per_task_halos_blocking_discreete";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
#export NIX_DEBUG=6
|
||||
'';
|
||||
|
||||
patches = [ ./tampi.patch ];
|
||||
|
||||
buildInputs = [
|
||||
nanos6
|
||||
mpi
|
||||
icc
|
||||
tampi
|
||||
mcxx
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
configurePhase = ''
|
||||
export TAMPI_HOME=${tampi}
|
||||
mkdir build
|
||||
cd build
|
||||
../configure MPI_ICPC_OSS
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/* $out/bin/
|
||||
'';
|
||||
|
||||
}
|
||||
13
garlic/hpcg/tampi.patch
Normal file
13
garlic/hpcg/tampi.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/setup/Make.MPI_ICPC_OSS 2020-07-13 16:02:33.272257865 +0200
|
||||
+++ b/setup/Make.MPI_ICPC_OSS 2020-07-13 16:04:34.344413390 +0200
|
||||
@@ -91,8 +91,8 @@
|
||||
# - HPCG includes / libraries / specifics -------------------------------
|
||||
# ----------------------------------------------------------------------
|
||||
#
|
||||
-HPCG_INCLUDES = -I$(INCdir) -I$(INCdir)/$(arch) $(MPinc) -I{TAMPI_HOME}/include
|
||||
-HPCG_LIBS = ${TAMPI_HOME}/lib/libtampi.a
|
||||
+HPCG_INCLUDES = -I$(INCdir) -I$(INCdir)/$(arch) $(MPinc) -I$(TAMPI_HOME)/include
|
||||
+HPCG_LIBS = -l:libtampi.a
|
||||
#
|
||||
# - Compile time options -----------------------------------------------
|
||||
#
|
||||
Reference in New Issue
Block a user