Skip to content

Commit

Permalink
[dynres] miniapps: remove option in script benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
augu5te committed Oct 17, 2023
1 parent d92bb0a commit 896a091
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions pkgs/miniapps-dynres/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitLab, scons, gfortran, openmpi-dynres
{ lib, stdenv, fetchFromGitLab, gfortran, openmpi-dynres
} :

stdenv.mkDerivation rec {
Expand All @@ -10,32 +10,25 @@ stdenv.mkDerivation rec {
group = "dynres";
owner = "applications";
repo = pname;
#rev = "ec96341aae5b30b9e4348972f46a8478443fc8b7";
#sha256 = "sha256-7HgSDaGfWSdJtaKlCHweiW1yE7AIftvTgdM1br8B7gY=";
rev = "204f360206030930cef7185f5258aac21c89f334";
sha256 = "sha256-F3K2wP0LRVY4mDrPqGEtxrmUCzAJSANaE9Mt72Kk08Q=";
};

postPatch = ''
#substituteInPlace SConstruct --replace "/usr/bin/g++" "g++"
#substituteInPlace SConstruct --replace "['include']" "'${openmpi-dynres}/include'"
substituteInPlace dyn_mpi_sessions_test_all.sh --replace "-x LD_LIBRARY_PATH -x DYNMPI_BASE \$DYNMPI_BASE/build/test_applications/build/" " "
substituteInPlace dyn_mpi_sessions_test_all.sh --replace "-b 0" " "
substituteInPlace dyn_mpi_sessions_test_all_8nodes.sh --replace "-x LD_LIBRARY_PATH -x DYNMPI_BASE \$DYNMPI_BASE/build/test_applications/build/" " "
substituteInPlace dyn_mpi_sessions_test_all_8nodes.sh --replace "-b 0" " "
'';

nativeBuildInputs = [ scons openmpi-dynres gfortran ];
nativeBuildInputs = [ openmpi-dynres gfortran ];

buildInputs = [ ];

buildPhase = ''
#export LD_LIBRARY_PATH=${openmpi-dynres}/lib
mpic++ -o build/DynMPISessions_v2a_release -O3 -mtune=native -std=gnu++11 -DNDEBUG examples/dyn_mpi_sessions_v2a.cpp
mpic++ -o build/DynMPISessions_v2a_nb_release -O3 -mtune=native -std=gnu++11 -DNDEBUG examples/dyn_mpi_sessions_v2a_nb.cpp
#scons example=DynMPISessions_v2a compileMode=release
#scons example=DynMPISessions_v2a_nb compileMode=release
#scons example=DynMPISessions_v2a_fortran compileMode=release
mpif90 -o ./build/dyn_mpi_sessions_v2a_fortran -ffree-line-length-none -cpp -O3 -mtune=native ./examples/util.f90 ./examples/dyn_mpi_sessions_v2a.f90
mpif90 -o build/DynMPISessions_v2a_fortran_release -ffree-line-length-none -cpp -O3 -mtune=native ./examples/util.f90 ./examples/dyn_mpi_sessions_v2a.f90
'';

installPhase = ''
Expand Down

0 comments on commit 896a091

Please sign in to comment.