forked from rarias/bscpkgs
Move apps to garlic
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
{
|
||||
stdenv
|
||||
, libconfig
|
||||
, nanos6
|
||||
, mpi
|
||||
, uthash
|
||||
, fftw
|
||||
, tampi
|
||||
, hdf5
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cpic";
|
||||
|
||||
# Use my current cpic version, so I can test changes without commits
|
||||
#src = /home/Computational/rarias/cpic;
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/rodarima/cpic";
|
||||
# rev = "73bd70448587f0925b89e24c8f17e412ea3958e6";
|
||||
ref = "simd";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
dontStrip = true;
|
||||
|
||||
buildInputs = [
|
||||
libconfig
|
||||
nanos6
|
||||
mpi
|
||||
uthash
|
||||
fftw
|
||||
tampi
|
||||
hdf5
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp cpic $out/bin/cpic
|
||||
'';
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
stdenv
|
||||
, nanos6
|
||||
, mpi
|
||||
, tampi
|
||||
, mcxx
|
||||
, icc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "creams";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/pmartin1/creams-simplified.git";
|
||||
ref = "MPI+OmpSs-2+TAMPI";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
nanos6
|
||||
mpi
|
||||
icc
|
||||
tampi
|
||||
mcxx
|
||||
];
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
configurePhase = ''
|
||||
export TAMPI_HOME=${tampi}
|
||||
. etc/bashrc
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -a build/* $out/bin
|
||||
'';
|
||||
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
{
|
||||
stdenv
|
||||
, nanos6
|
||||
, mpi
|
||||
, tampi
|
||||
, mcxx
|
||||
, icc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nbody";
|
||||
variant = "4_MPI_ompss";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "https://gitlab.com/srodrb/BSC-FWI.git";
|
||||
ref = "ompss-mpi-nocache";
|
||||
};
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/${variant}";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [
|
||||
nanos6
|
||||
mpi
|
||||
icc
|
||||
tampi
|
||||
mcxx
|
||||
];
|
||||
|
||||
# FIXME: This is an ugly hack.
|
||||
# When using _GNU_SOURCE or any other definition used in features.h, we need
|
||||
# to define them before mcc includes nanos6.h from the command line. So the
|
||||
# only chance is by setting it at the command line with -D. Using the DEFINES
|
||||
# below, reaches the command line of the preprocessing stage with gcc.
|
||||
preBuild = ''
|
||||
export DEFINES=-D_GNU_SOURCE
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"NZF=108"
|
||||
"NXF=108"
|
||||
"NYF=208"
|
||||
"PRECISION=float"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp fwi.* $out/bin
|
||||
cp ModelGenerator $out/bin
|
||||
'';
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
{
|
||||
stdenv
|
||||
, nanos6
|
||||
, mpi
|
||||
, tampi
|
||||
, mcxx
|
||||
, icc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "heat";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/benchmarks/ompss-2/heat-conflict-kevin.git";
|
||||
#rev = "25fde23e5ad5f5e2e58418ed269bc2b44642aa17";
|
||||
ref = "master";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
nanos6
|
||||
mpi
|
||||
icc
|
||||
tampi
|
||||
mcxx
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp heat_* $out/bin/
|
||||
'';
|
||||
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
{
|
||||
stdenv
|
||||
, nanos6
|
||||
, mpi
|
||||
, mcxx
|
||||
, tampi
|
||||
, icc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "hpccg";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/mmaronas/HPCCG.git";
|
||||
ref = "mmaronas-development";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
nanos6
|
||||
mpi
|
||||
icc
|
||||
tampi
|
||||
mcxx
|
||||
];
|
||||
|
||||
# The hpccg app fails to compile in parallel. Makefile must be fixed before.
|
||||
enableParallelBuilding = false;
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/mpic++/mpiicpc/g' Makefile
|
||||
sed -i 's/g++/icpc/g' Makefile
|
||||
mkdir obj
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"USE_MPI=-DUSING_MPI"
|
||||
"TAMPI_HOME=${tampi}"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp test_HPCCG* $out/bin
|
||||
'';
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
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/
|
||||
'';
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
--- 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 -----------------------------------------------
|
||||
#
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
stdenv
|
||||
, mpi
|
||||
, mcxx
|
||||
, icc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lulesh";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/mmaronas/lulesh.git";
|
||||
ref = "master";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
buildInputs = [
|
||||
mpi
|
||||
icc
|
||||
mcxx
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
find . -name 'lulesh*' -type f -executable -exec cp \{\} $out/bin/ \;
|
||||
'';
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user